From f7a2342d475800a9b924e02badb5e83d098dca95 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Tue, 3 Nov 2020 13:45:39 +0300 Subject: [PATCH] is_finalized_header - use is_finalized flag (#476) --- bridges/modules/substrate/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/modules/substrate/src/lib.rs b/bridges/modules/substrate/src/lib.rs index 62a44e0a62c3f..0daed1db3e23e 100644 --- a/bridges/modules/substrate/src/lib.rs +++ b/bridges/modules/substrate/src/lib.rs @@ -251,7 +251,7 @@ impl Module { pub fn is_finalized_header(hash: BridgedBlockHash) -> bool { let storage = PalletStorage::::new(); if let Some(header) = storage.header_by_hash(hash) { - header.number() <= storage.best_finalized_header().number() + header.is_finalized } else { false }