mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core/blockchain: go fmt
This commit is contained in:
parent
661442886e
commit
81d63bdec5
1 changed files with 12 additions and 12 deletions
|
|
@ -1144,22 +1144,22 @@ func (self *BlockChain) reorg(oldBlock, newBlock *types.Block) error {
|
||||||
|
|
||||||
oldLen := len(oldChain)
|
oldLen := len(oldChain)
|
||||||
|
|
||||||
if glog.V(logger.Debug) || oldLen > 63 {
|
if glog.V(logger.Debug) || oldLen > 63 {
|
||||||
commonHash := commonBlock.Hash()
|
commonHash := commonBlock.Hash()
|
||||||
commonNumber := commonBlock.Number()
|
commonNumber := commonBlock.Number()
|
||||||
newLen := len(newChain)
|
newLen := len(newChain)
|
||||||
|
|
||||||
newLast := newChain[0]
|
newLast := newChain[0]
|
||||||
newFirst := newChain[newLen-1]
|
newFirst := newChain[newLen-1]
|
||||||
oldLast := oldChain[0]
|
oldLast := oldChain[0]
|
||||||
oldFirst := oldChain[oldLen-1]
|
oldFirst := oldChain[oldLen-1]
|
||||||
glog.Infof("Chain split detected after #%v [%x…]. Reorganising chain (-%v +%v blocks) from #%v-#%v [%x/%x] in favour of #%v-#%v [%x/%x]",
|
glog.Infof("Chain split detected after #%v [%x…]. Reorganising chain (-%v +%v blocks) from #%v-#%v [%x/%x] in favour of #%v-#%v [%x/%x]",
|
||||||
commonNumber, commonHash[:4],
|
commonNumber, commonHash[:4],
|
||||||
oldLen, newLen,
|
oldLen, newLen,
|
||||||
oldFirst.Number(),oldLast.Number(),
|
oldFirst.Number(), oldLast.Number(),
|
||||||
oldFirst.Hash().Bytes()[:4] ,oldLast.Hash().Bytes()[:4],
|
oldFirst.Hash().Bytes()[:4], oldLast.Hash().Bytes()[:4],
|
||||||
newFirst.Number(),newLast.Number(),
|
newFirst.Number(), newLast.Number(),
|
||||||
newFirst.Hash().Bytes()[:4], newLast.Hash().Bytes()[:4])
|
newFirst.Hash().Bytes()[:4], newLast.Hash().Bytes()[:4])
|
||||||
}
|
}
|
||||||
|
|
||||||
var addedTxs types.Transactions
|
var addedTxs types.Transactions
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue