diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-05 16:14:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-05 16:14:58 +0800 |
commit | c47866d25174bd783ee6bcd5b400d81d7bf598bb (patch) | |
tree | 01c71c40981f4f75e1721011006d2da96dfc3c2d /eth | |
parent | 15f491e5007d1507f20d0edce36cc9c0bd5cbd37 (diff) | |
download | dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.gz dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.bz2 dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.lz dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.xz dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.tar.zst dexon-c47866d25174bd783ee6bcd5b400d81d7bf598bb.zip |
Miner fixes and updates (including miner)
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 3 | ||||
-rw-r--r-- | eth/protocol.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/eth/backend.go b/eth/backend.go index 5cd7b308f..88708b997 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -19,7 +19,6 @@ import ( "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p/discover" "github.com/ethereum/go-ethereum/p2p/nat" - "github.com/ethereum/go-ethereum/pow/ezp" "github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/whisper" ) @@ -189,7 +188,7 @@ func New(config *Config) (*Ethereum, error) { hasBlock := eth.chainManager.HasBlock insertChain := eth.chainManager.InsertChain - eth.blockPool = blockpool.New(hasBlock, insertChain, ezp.Verify) + eth.blockPool = blockpool.New(hasBlock, insertChain, pow.Verify) netprv, err := config.nodeKey() if err != nil { diff --git a/eth/protocol.go b/eth/protocol.go index 663af43fe..c887af129 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -250,7 +250,7 @@ func (self *ethProtocol) handle() error { return self.protoError(ErrDecode, "msg %v: %v", msg, err) } hash := request.Block.Hash() - fmt.Println("received block: %x", hash) + fmt.Printf("received block: %x\n", hash) _, chainHead, _ := self.chainManager.Status() jsonlogger.LogJson(&logger.EthChainReceivedNewBlock{ |