Skip to content

Commit a17df43

Browse files
committed
Fix
1 parent 8b3447a commit a17df43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/state/execution.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ func (blockExec *BlockExecutor) CreateProposalBlock(
9898

9999
evidence, evSize := blockExec.evpool.PendingEvidence(state.ConsensusParams.Evidence.MaxBytes)
100100

101-
fmt.Printf("[Debug] Creating proposal block height %d, mempool size: %d \n", height, blockExec.mempool.Size())
101+
startTime := time.Now()
102102
// Fetch a limited amount of valid txs
103103
maxDataBytes := types.MaxDataBytes(maxBytes, evSize, state.Validators.Size())
104104

105105
txs := blockExec.mempool.ReapMaxBytesMaxGas(maxDataBytes, maxGas)
106-
fmt.Printf("[Debug] Reap %d txs for height %d, mempool size: %d \n", len(txs), height, blockExec.mempool.Size())
106+
fmt.Printf("[Debug] Reap %d txs for height %d, mempool size: %d took %s \n", len(txs), height, blockExec.mempool.Size(), time.Since(startTime))
107107

108108
commit := lastExtCommit.ToCommit()
109109
block := state.MakeBlock(height, txs, commit, evidence, proposerAddr)

0 commit comments

Comments
 (0)