diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 10:00:31 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:18 +0800 |
commit | afc6a417210dc43a5a38ece5302de6801785316f (patch) | |
tree | bdf34181a628038f935e161433fe1b612a5b3bae /core/blockchain.go | |
parent | 82d138debeac23029d3640ee7bc31c4ed093ff28 (diff) | |
download | go-tangerine-afc6a417210dc43a5a38ece5302de6801785316f.tar.gz go-tangerine-afc6a417210dc43a5a38ece5302de6801785316f.tar.zst go-tangerine-afc6a417210dc43a5a38ece5302de6801785316f.zip |
core: various changes on tps tuning (#46)
Diffstat (limited to 'core/blockchain.go')
-rw-r--r-- | core/blockchain.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index 3d7171cd7..81e9f05b2 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1834,6 +1834,8 @@ func (bc *BlockChain) processPendingBlock( bc.addPendingBlock(newPendingBlock, receipts) events = append(events, BlockConfirmedEvent{newPendingBlock}) + log.Debug("Inserted pending block", "height", newPendingBlock.Number(), "hash", newPendingBlock.Hash()) + // Start insert available pending blocks into db for pendingHeight := bc.CurrentBlock().NumberU64() + 1; pendingHeight <= witness.Height; pendingHeight++ { pendingIns, exist := bc.pendingBlocks[pendingHeight] |