|
|
@ -433,7 +433,7 @@ func (consensus *Consensus) Start( |
|
|
|
// All blocks returned are guaranteed to pass the verification.
|
|
|
|
// All blocks returned are guaranteed to pass the verification.
|
|
|
|
type LastMileBlockIter struct { |
|
|
|
type LastMileBlockIter struct { |
|
|
|
blockCandidates []*types.Block |
|
|
|
blockCandidates []*types.Block |
|
|
|
fbftLog FBFTLog |
|
|
|
fbftLog *FBFTLog |
|
|
|
verify func(*types.Block) error |
|
|
|
verify func(*types.Block) error |
|
|
|
curIndex int |
|
|
|
curIndex int |
|
|
|
logger *zerolog.Logger |
|
|
|
logger *zerolog.Logger |
|
|
@ -453,6 +453,7 @@ func (consensus *Consensus) GetLastMileBlockIter(bnStart uint64) (*LastMileBlock |
|
|
|
} |
|
|
|
} |
|
|
|
return &LastMileBlockIter{ |
|
|
|
return &LastMileBlockIter{ |
|
|
|
blockCandidates: blocks, |
|
|
|
blockCandidates: blocks, |
|
|
|
|
|
|
|
fbftLog: consensus.FBFTLog, |
|
|
|
verify: consensus.BlockVerifier, |
|
|
|
verify: consensus.BlockVerifier, |
|
|
|
curIndex: 0, |
|
|
|
curIndex: 0, |
|
|
|
logger: consensus.getLogger(), |
|
|
|
logger: consensus.getLogger(), |
|
|
|