1
0
mirror of synced 2025-01-11 08:15:48 +00:00

fix(fuzz): fix precondition for receive_timeout_qc (#248)

This commit is contained in:
Youngjoon Lee 2023-07-06 21:14:26 +09:00 committed by GitHub
parent 3607ce7627
commit 8d0360ab3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ impl ReferenceStateMachine for RefState {
Transition::ApprovePastBlock(block) => state.highest_voted_view >= block.view, Transition::ApprovePastBlock(block) => state.highest_voted_view >= block.view,
Transition::LocalTimeout => true, Transition::LocalTimeout => true,
Transition::ReceiveTimeoutQcForRecentView(timeout_qc) => { Transition::ReceiveTimeoutQcForRecentView(timeout_qc) => {
timeout_qc.view() == state.current_view() timeout_qc.view() >= state.current_view()
} }
Transition::ReceiveTimeoutQcForOldView(timeout_qc) => { Transition::ReceiveTimeoutQcForOldView(timeout_qc) => {
timeout_qc.view() < state.current_view() timeout_qc.view() < state.current_view()