Fixed build errors.

This commit is contained in:
Jianping Wu 2019-02-26 15:27:48 -08:00
parent 3142940719
commit eb0d8c4216
8 changed files with 14 additions and 14 deletions

View File

@ -14,7 +14,7 @@ ethdir="$workspace/src/github.com/kevacoin-project"
if [ ! -L "$ethdir/keva-stratum" ]; then
mkdir -p "$ethdir"
cd "$ethdir"
ln -s ../../../../../. monero-stratum
ln -s ../../../../../. keva-stratum
cd "$root"
fi

View File

@ -10,8 +10,8 @@ import (
"runtime"
"time"
"./pool"
"./stratum"
"github.com/kevacoin-project/keva-stratum/pool"
"github.com/kevacoin-project/keva-stratum/stratum"
"github.com/goji/httpauth"
"github.com/gorilla/mux"

View File

@ -11,7 +11,7 @@ import (
"sync/atomic"
"time"
"../pool"
"github.com/kevacoin-project/keva-stratum/pool"
)
type RPCClient struct {

View File

@ -6,8 +6,8 @@ import (
"sync/atomic"
"time"
"../rpc"
"../util"
"github.com/kevacoin-project/keva-stratum/rpc"
"github.com/kevacoin-project/keva-stratum/util"
)
func (s *StratumServer) StatsIndex(w http.ResponseWriter, r *http.Request) {

View File

@ -26,7 +26,7 @@ func (b *BlockTemplate) nextBlob(extraNonce uint32, instanceId []byte) string {
copy(blobBuff[b.reservedOffset+4:b.reservedOffset+7], instanceId)
copy(blobBuff[b.reservedOffset:], extraBuff.Bytes())
//blob := cnutil.ConvertBlob(blobBuff)
blob := nil //TODO: fix this!
blob := []byte("fix this!") //TODO: fix this!
return hex.EncodeToString(blob)
}

View File

@ -6,7 +6,7 @@ import (
"strings"
"sync/atomic"
"../util"
"github.com/kevacoin-project/keva-stratum/util"
)
var noncePattern *regexp.Regexp

View File

@ -10,8 +10,8 @@ import (
"sync/atomic"
"time"
"../hashing"
"../util"
"github.com/kevacoin-project/keva-stratum/hashing"
"github.com/kevacoin-project/keva-stratum/util"
)
type Job struct {
@ -152,7 +152,7 @@ func (m *Miner) processShare(s *StratumServer, cs *Session, job *Job, t *BlockTe
} else {
//convertedBlob = cnutil.ConvertBlob(shareBuff)
// TODO: fix this.
convertedBlob = nill
convertedBlob = []byte("fix this!")
hashBytes = hashing.Hash(convertedBlob, false)
}

View File

@ -13,9 +13,9 @@ import (
"sync/atomic"
"time"
"../pool"
"../rpc"
"../util"
"github.com/kevacoin-project/keva-stratum/pool"
"github.com/kevacoin-project/keva-stratum/rpc"
"github.com/kevacoin-project/keva-stratum/util"
)
type StratumServer struct {