CheckBridgedBlockNumber signed extension to reject duplicate header-submit transactions (#1352)

* CheckBridgedBlockNumber signed extension to reject duplicate header submit transactions

* fix depends_on
This commit is contained in:
Svyatoslav Nikolsky
2022-05-16 14:07:17 +03:00
committed by Bastian Köcher
parent 748c265c47
commit f64357e7e8
6 changed files with 185 additions and 3 deletions
+3 -2
View File
@@ -45,10 +45,11 @@ use sp_finality_grandpa::{ConsensusLog, GRANDPA_ENGINE_ID};
use sp_runtime::traits::{BadOrigin, Header as HeaderT, Zero};
use sp_std::{boxed::Box, convert::TryInto};
mod extension;
#[cfg(test)]
mod mock;
/// Pallet containing weights for this pallet.
/// Module, containing weights for this pallet.
pub mod weights;
#[cfg(feature = "runtime-benchmarks")]
@@ -269,7 +270,7 @@ pub mod pallet {
/// Hash of the best finalized header.
#[pallet::storage]
pub(super) type BestFinalized<T: Config<I>, I: 'static = ()> =
pub type BestFinalized<T: Config<I>, I: 'static = ()> =
StorageValue<_, BridgedBlockHash<T, I>, ValueQuery>;
/// A ring buffer of imported hashes. Ordered by the insertion time.