Skip to content

Commit

Permalink
BEEFY: expect_validator_set() small fix (paritytech#2737)
Browse files Browse the repository at this point in the history
Follow-up on paritytech#2716

Sorry, small miss
  • Loading branch information
serban300 authored Dec 18, 2023
1 parent 6d94b5b commit f56d5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/client/consensus/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f56d5f0

Please sign in to comment.