Skip to content

Commit 49b2e06

Browse files
kyonRaymorebtcg
andauthored
<fix>(pbft): fix proposal re-push cache bug when proposal apply failed. (FISCO-BCOS#4598)
Signed-off-by: Kyon <[email protected]> Co-authored-by: MO NAN <[email protected]>
1 parent 2dc65dc commit 49b2e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bcos-pbft/bcos-pbft/pbft/engine/PBFTEngine.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ void PBFTEngine::onProposalApplyFailed(int64_t _errorCode, PBFTProposalInterface
229229
fetchAndUpdateLedgerConfig();
230230
}
231231
// re-push the proposal into the queue
232-
if (_proposal->index() >= m_config->committedProposal()->index() ||
233-
_proposal->index() >= m_config->syncingHighestNumber())
232+
if (_proposal->index() > m_config->committedProposal()->index() ||
233+
_proposal->index() > m_config->syncingHighestNumber())
234234
{
235235
m_config->timer()->restart();
236236
// restart checkPoint timer to advoid timeout
@@ -1793,4 +1793,4 @@ void PBFTEngine::switchToRPBFT(const LedgerConfig::Ptr& _ledgerConfig)
17931793
{
17941794
this->m_config->setRPBFTConfigTools(std::make_shared<RPBFTConfigTools>());
17951795
}
1796-
}
1796+
}

0 commit comments

Comments
 (0)