Skip to content

Commit c2e6331

Browse files
committedJul 19, 2024·
shift where we measure compact blocks
1 parent 71b752e commit c2e6331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎consensus/state.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,7 @@ func (cs *State) defaultSetProposal(proposal *types.Proposal) error {
19791979
func (cs *State) addCompactBlock(msg *CompactBlockMessage, peerID p2p.ID) error {
19801980
compactBlock := msg.Block
19811981
height := compactBlock.Height
1982+
cs.jsonMetrics.ReceivedCompactBlocks++
19821983

19831984
if cs.ProposalBlock != nil {
19841985
// We already have the proposal block.
@@ -2007,7 +2008,6 @@ func (cs *State) addCompactBlock(msg *CompactBlockMessage, peerID p2p.ID) error
20072008

20082009
blockHash := cs.Proposal.BlockID.Hash
20092010
timeout := cs.config.Propose(cs.Round)
2010-
cs.jsonMetrics.ReceivedCompactBlocks++
20112011

20122012
// Yield the lock while we fetch the transactions from the mempool so that votes
20132013
// and other operations can be processed.

0 commit comments

Comments
 (0)
Please sign in to comment.