From 0b5421f5caa11b04b31dade04a3dfb49c005008e Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Wed, 12 Jul 2023 16:54:40 -0700 Subject: [PATCH] Bugfix: would_be_leader_shortly_fn period set to 1 slot instead of 20 (#32468) --- core/src/banking_stage/decision_maker.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/banking_stage/decision_maker.rs b/core/src/banking_stage/decision_maker.rs index 3e171923c4b0ec..ef705c0a2bee9b 100644 --- a/core/src/banking_stage/decision_maker.rs +++ b/core/src/banking_stage/decision_maker.rs @@ -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