diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-01 05:26:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-01 05:26:52 +0800 |
commit | 3af211dd65d6690afce9976a9f47ab1cdddb8d58 (patch) | |
tree | 2fbfade2d934d5c41a0e3bec449d1b23dea3b0ae /block_pool.go | |
parent | ab6ede51d7fedb9270cab08ee732a834be34dab2 (diff) | |
download | go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.gz go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.bz2 go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.lz go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.xz go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.zst go-tangerine-3af211dd65d6690afce9976a9f47ab1cdddb8d58.zip |
Implemented WebSocket package
Diffstat (limited to 'block_pool.go')
-rw-r--r-- | block_pool.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/block_pool.go b/block_pool.go index 957b7601b..003d1db58 100644 --- a/block_pool.go +++ b/block_pool.go @@ -11,7 +11,6 @@ import ( "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethlog" "github.com/ethereum/eth-go/ethutil" - "github.com/ethereum/eth-go/ethwire" ) var poollogger = ethlog.NewLogger("BPOOL") @@ -99,8 +98,8 @@ func (self *BlockPool) Add(b *ethchain.Block, peer *Peer) { self.pool[hash] = &block{peer, peer, b, time.Now(), 0} if !self.eth.BlockChain().HasBlock(b.PrevHash) && !self.fetchingHashes { - poollogger.Infof("Unknown block, requesting parent (%x...)\n", b.PrevHash[0:4]) - peer.QueueMessage(ethwire.NewMessage(ethwire.MsgGetBlockHashesTy, []interface{}{b.PrevHash, uint32(256)})) + //poollogger.Infof("Unknown block, requesting parent (%x...)\n", b.PrevHash[0:4]) + //peer.QueueMessage(ethwire.NewMessage(ethwire.MsgGetBlockHashesTy, []interface{}{b.PrevHash, uint32(256)})) } } else if self.pool[hash] != nil { self.pool[hash].block = b |