diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-03 00:22:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-03 00:22:33 +0800 |
commit | cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376 (patch) | |
tree | 5bb3fa719fd1388573201b8baa92b90e790f720a /block_pool.go | |
parent | 5ebae82eeb3f5ecdffb96f9d692523d0b0d4f759 (diff) | |
download | go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.gz go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.bz2 go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.lz go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.xz go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.tar.zst go-tangerine-cb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376.zip |
Updated LOG to match proper gas in all cases
Diffstat (limited to 'block_pool.go')
-rw-r--r-- | block_pool.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/block_pool.go b/block_pool.go index 69c7a54de..2cc705514 100644 --- a/block_pool.go +++ b/block_pool.go @@ -336,32 +336,6 @@ out: self.Remove(block.Hash()) } } - - /* - // Test and import - bchain := chain.NewChain(blocks) - _, err := chainManager.TestChain(bchain) - if err != nil && !chain.IsTDError(err) { - poollogger.Debugln(err) - - self.Reset() - - if self.peer != nil && self.peer.conn != nil { - poollogger.Debugf("Punishing peer for supplying bad chain (%v)\n", self.peer.conn.RemoteAddr()) - } - - // This peer gave us bad hashes and made us fetch a bad chain, therefor he shall be punished. - self.eth.BlacklistPeer(self.peer) - self.peer.StopWithReason(DiscBadPeer) - self.td = ethutil.Big0 - self.peer = nil - } else { - chainManager.InsertChain(bchain) - for _, block := range blocks { - self.Remove(block.Hash()) - } - } - */ } } } |