diff options
author | Felix Lange <fjl@twurst.com> | 2015-08-18 20:14:45 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-09-23 04:57:37 +0800 |
commit | a2d5a60418e70ce56112381dffdd121cc678a1b6 (patch) | |
tree | c9733cb16b7ca5bac98d6ae11254def5a48aafb8 /core/chain_manager.go | |
parent | 565d9f2306d19f63be6a6e1b8fc480af8dca9617 (diff) | |
download | go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.tar go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.tar.gz go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.tar.bz2 go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.tar.lz go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.tar.xz go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.tar.zst go-tangerine-a2d5a60418e70ce56112381dffdd121cc678a1b6.zip |
core, core/state: batch-based state sync
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index 42f70af33..0fb472308 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -839,8 +839,8 @@ out: } func blockErr(block *types.Block, err error) { - h := block.Header() - glog.V(logger.Error).Infof("Bad block #%v (%x)\n", h.Number, h.Hash().Bytes()) - glog.V(logger.Error).Infoln(err) - glog.V(logger.Debug).Infoln(verifyNonces) + if glog.V(logger.Error) { + glog.Errorf("Bad block #%v (%s)\n", block.Number(), block.Hash().Hex()) + glog.Errorf(" %v", err) + } } |