Skip to content

Commit

Permalink
Fix grandpa client required update usage (#432)
Browse files Browse the repository at this point in the history
* Fix grandpa client required update usage

Signed-off-by: Vladislav <[email protected]>
  • Loading branch information
vmarkushin committed Nov 10, 2023
1 parent a1e1f78 commit 3a56c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyperspace/parachain/src/finality_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ where
<T as subxt::Config>::AccountId: Send + Sync,
<T as subxt::Config>::Address: Send + Sync,
{
let _justification = match finality_event {
let latest_justification = match finality_event {
FinalityEvent::Grandpa(justification) => justification,
_ => panic!("Expected grandpa finality event"),
};
Expand Down Expand Up @@ -635,7 +635,7 @@ where
// checkpoints so we don't end up with a very large finality proof at the session end.
let is_update_required = source
.is_update_required(
justification.commit.target_number.into(),
latest_justification.commit.target_number.into(),
client_state.latest_relay_height.into(),
)
.await?;
Expand Down

0 comments on commit 3a56c56

Please sign in to comment.