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

Commit

Permalink
Add BridgeRejectObsoleteHeadersAndMessages to bridge hubs (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
serban300 authored Dec 8, 2022
1 parent a2d2a5c commit d42acfd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
// TODO: do we need?
// BridgeRejectObsoleteHeadersAndMessages,
BridgeRejectObsoleteHeadersAndMessages,
);

/// Unchecked extrinsic type as expected by this runtime.
Expand Down Expand Up @@ -624,6 +623,16 @@ construct_runtime!(
}
);

bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
RuntimeCall, AccountId,
// Grandpa
BridgeRococoGrandpa, BridgeWococoGrandpa,
// Parachains
BridgeRococoParachain, BridgeWococoParachain,
// Messages
BridgeRococoMessages, BridgeWococoMessages
}

#[cfg(feature = "runtime-benchmarks")]
#[macro_use]
extern crate frame_benchmarking;
Expand Down

0 comments on commit d42acfd

Please sign in to comment.