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
+7
View File
@@ -500,6 +500,12 @@ construct_runtime!(
}
);
pallet_bridge_grandpa::declare_check_bridged_block_number_ext! {
Runtime,
Call::BridgeRialtoGrandpa => RialtoGrandpaInstance,
Call::BridgeWestendGrandpa => WestendGrandpaInstance
}
/// The address format for describing accounts.
pub type Address = AccountId;
/// Block header type as expected by this runtime.
@@ -520,6 +526,7 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
CheckBridgedBlockNumber,
);
/// The payload being signed in transactions.
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;