Merge pull request #3739 from karalabe/logger-updates-4

all: update light logs (and a few others) to the new model
This commit is contained in:
Péter Szilágyi
2017-03-03 18:53:30 +02:00
committed by GitHub
22 changed files with 285 additions and 341 deletions

View File

@ -1016,12 +1016,10 @@ func (self *BlockChain) InsertChain(chain types.Blocks) (int, error) {
case SplitStatTy:
events = append(events, ChainSplitEvent{block, logs})
}
stats.processed++
stats.usedGas += usedGas.Uint64()
stats.report(chain, i)
}
go self.postChainEvents(events, coalescedLogs)
return 0, nil