From afc6a417210dc43a5a38ece5302de6801785316f Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 26 Nov 2018 10:00:31 +0800 Subject: core: various changes on tps tuning (#46) --- core/blockchain.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/blockchain.go') 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] -- cgit v1.2.3