aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-12-15 04:08:24 +0800
committerzelig <viktor.tron@gmail.com>2014-12-15 04:53:20 +0800
commit4c89d5331f41fa93e6840893c6727b05eabe5f99 (patch)
treedd221008e8ee584a574148a53dc8e228cdf95bec /eth/backend.go
parent61940b2275a8f3c77d906947b2d1126bb6c3b21d (diff)
downloadgo-tangerine-4c89d5331f41fa93e6840893c6727b05eabe5f99.tar.gz
go-tangerine-4c89d5331f41fa93e6840893c6727b05eabe5f99.tar.zst
go-tangerine-4c89d5331f41fa93e6840893c6727b05eabe5f99.zip
adapt blockpool/backend to use pow/ezp with pow.Block for VerifyPoW func
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/eth/backend.go b/eth/backend.go
index a7824e5d7..6235fc824 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -7,12 +7,12 @@ import (
"sync"
"github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/event"
ethlogger "github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/p2p"
+ "github.com/ethereum/go-ethereum/pow/ezp"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/state"
)
@@ -111,9 +111,8 @@ func New(db ethutil.Database, identity p2p.ClientIdentity, keyManager *crypto.Ke
hasBlock := eth.chainManager.HasBlock
insertChain := eth.chainManager.InsertChain
- // pow := ezp.New()
- // verifyPoW := pow.Verify
- verifyPoW := func(*types.Block) bool { return true }
+ pow := ezp.New()
+ verifyPoW := pow.Verify
eth.blockPool = NewBlockPool(hasBlock, insertChain, verifyPoW)
// Start the tx pool