aboutsummaryrefslogtreecommitdiffstats
path: root/chain/chain_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-03 00:22:33 +0800
committerobscuren <geffobscura@gmail.com>2014-12-03 00:22:33 +0800
commitcb4d168ecc9f6c2ecdb1a8f3308f8f3eb9f02376 (patch)
tree5bb3fa719fd1388573201b8baa92b90e790f720a /chain/chain_manager.go
parent5ebae82eeb3f5ecdffb96f9d692523d0b0d4f759 (diff)
downloadgo-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 'chain/chain_manager.go')
-rw-r--r--chain/chain_manager.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/chain/chain_manager.go b/chain/chain_manager.go
index 45af61e48..b71510833 100644
--- a/chain/chain_manager.go
+++ b/chain/chain_manager.go
@@ -321,7 +321,6 @@ func NewChain(blocks Blocks) *BlockChain {
return chain
}
-// This function assumes you've done your checking. No checking is done at this stage anymore
func (self *ChainManager) InsertChain(chain Blocks) error {
for _, block := range chain {
td, messages, err := self.Ethereum.BlockManager().Process(block)
@@ -330,7 +329,9 @@ func (self *ChainManager) InsertChain(chain Blocks) error {
continue
}
- chainlogger.Infof("block process failed %v (%x)\n", block.Number, block.Hash()[:4])
+ chainlogger.Infof("block #%v process failed (%x)\n", block.Number, block.Hash()[:4])
+ chainlogger.Infoln(block)
+ chainlogger.Infoln(err)
return err
}