Bugfix: would_be_leader_shortly_fn period set to 1 slot instead of 20 (#32468)

This commit is contained in:
Andrew Fitzgerald 2023-07-12 16:54:40 -07:00 committed by GitHub
parent ae6abda786
commit 0b5421f5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -53,8 +53,10 @@ impl DecisionMaker {
})
},
|| {
poh_recorder
.would_be_leader(HOLD_TRANSACTIONS_SLOT_OFFSET * DEFAULT_TICKS_PER_SLOT)
poh_recorder.would_be_leader(
(FORWARD_TRANSACTIONS_TO_LEADER_AT_SLOT_OFFSET - 1)
* DEFAULT_TICKS_PER_SLOT,
)
},
|| {
poh_recorder