mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
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:
committed by
Bastian Köcher
parent
748c265c47
commit
f64357e7e8
@@ -15,6 +15,7 @@ relay-utils = { path = "../utils" }
|
||||
bp-messages = { path = "../../primitives/messages" }
|
||||
bp-millau = { path = "../../primitives/chain-millau" }
|
||||
millau-runtime = { path = "../../bin/millau/runtime" }
|
||||
pallet-bridge-grandpa = { path = "../../modules/grandpa" }
|
||||
|
||||
# Substrate Dependencies
|
||||
|
||||
|
||||
@@ -113,6 +113,7 @@ impl TransactionSignScheme for Millau {
|
||||
frame_system::CheckNonce::<millau_runtime::Runtime>::from(param.unsigned.nonce),
|
||||
frame_system::CheckWeight::<millau_runtime::Runtime>::new(),
|
||||
pallet_transaction_payment::ChargeTransactionPayment::<millau_runtime::Runtime>::from(param.unsigned.tip),
|
||||
millau_runtime::CheckBridgedBlockNumber, // TODO
|
||||
),
|
||||
(
|
||||
(),
|
||||
@@ -123,6 +124,7 @@ impl TransactionSignScheme for Millau {
|
||||
(),
|
||||
(),
|
||||
(),
|
||||
(),
|
||||
),
|
||||
);
|
||||
let signature = raw_payload.using_encoded(|payload| param.signer.sign(payload));
|
||||
|
||||
Reference in New Issue
Block a user