diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 10:00:31 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | f79bf330b4b649ea74d54faf749214c14f32af9c (patch) | |
tree | 1cf494fda8e45813c6e4062a587dfd3ecf1d5a54 /core/blockchain.go | |
parent | b4f183ba63e3ab5dccc6371faaa57c77b61e967b (diff) | |
download | dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.gz dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.bz2 dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.lz dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.xz dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.zst dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.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 dfc00ffd0..b9de195dc 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] |