From 43d418808cee3218808b543558730a77fa04df87 Mon Sep 17 00:00:00 2001 From: Serban Iorga Date: Mon, 18 Dec 2023 14:27:37 +0100 Subject: [PATCH] BEEFY: expect_validator_set() small fix --- 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 c3da2b886f49..e6224cbf3e92 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());