Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
is_finalized_header - use is_finalized flag (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored Nov 3, 2020
1 parent bebb6dc commit 6b954c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 6b954c1

Please sign in to comment.