Skip to content

Commit

Permalink
is_finalized_header - use is_finalized flag (paritytech#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and serban300 committed Apr 10, 2024
1 parent 42050c3 commit 6af5882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/modules/substrate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl<T: Trait> Module<T> {
pub fn is_finalized_header(hash: BridgedBlockHash<T>) -> bool {
let storage = PalletStorage::<T>::new();
if let Some(header) = storage.header_by_hash(hash) {
header.number() <= storage.best_finalized_header().number()
header.is_finalized
} else {
false
}
Expand Down

0 comments on commit 6af5882

Please sign in to comment.