From f56d5f038183284680c3fd2f250eff2754887e49 Mon Sep 17 00:00:00 2001 From: Serban Iorga Date: Mon, 18 Dec 2023 15:14:29 +0100 Subject: [PATCH] BEEFY: expect_validator_set() small fix (#2737) Follow-up on /~https://github.com/paritytech/polkadot-sdk/pull/2716 Sorry, small miss --- substrate/client/consensus/beefy/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/client/consensus/beefy/src/lib.rs b/substrate/client/consensus/beefy/src/lib.rs index c3da2b886f49f..e6224cbf3e92b 100644 --- a/substrate/client/consensus/beefy/src/lib.rs +++ b/substrate/client/consensus/beefy/src/lib.rs @@ -550,7 +550,7 @@ where debug!(target: LOG_TARGET, "🥩 Trying to find validator set active at header: {:?}", at_header); let mut header = at_header.clone(); loop { - if let Ok(Some(active)) = runtime.runtime_api().validator_set(at_header.hash()) { + if let Ok(Some(active)) = runtime.runtime_api().validator_set(header.hash()) { return Ok(active) } else { debug!(target: LOG_TARGET, "🥩 Looking for auth set change at block number: {:?}", *header.number());