From 96bfb677a4277d52cfdf5d49647cf73689b37021 Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Wed, 4 Nov 2020 22:45:30 -0800 Subject: [PATCH] [consensus] fix fbftlog in lastMileBlockIter --- consensus/consensus_v2.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/consensus_v2.go b/consensus/consensus_v2.go index 6360d77a0..c9f6d7161 100644 --- a/consensus/consensus_v2.go +++ b/consensus/consensus_v2.go @@ -400,7 +400,7 @@ func (consensus *Consensus) Start( // All blocks returned are guaranteed to pass the verification. type LastMileBlockIter struct { blockCandidates []*types.Block - fbftLog FBFTLog + fbftLog *FBFTLog verify func(*types.Block) error curIndex int logger *zerolog.Logger @@ -420,6 +420,7 @@ func (consensus *Consensus) GetLastMileBlockIter(bnStart uint64) (*LastMileBlock } return &LastMileBlockIter{ blockCandidates: blocks, + fbftLog: consensus.FBFTLog, verify: consensus.BlockVerifier, curIndex: 0, logger: consensus.getLogger(),