Skip to content

Commit

Permalink
runtime: Disable SignedExtra N/W Membership Check (#511)
Browse files Browse the repository at this point in the history
Signed-off-by: Shreevatsa N <[email protected]>
  • Loading branch information
vatsa287 authored Sep 26, 2024
1 parent e892577 commit 828770a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions node/cli/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ fn weave_sign_call(
use sp_core::Pair;

let extra: runtime::SignedExtra = (
pallet_network_membership::CheckNetworkMembership::<runtime::Runtime>::new(),
//pallet_network_membership::CheckNetworkMembership::<runtime::Runtime>::new(),
frame_system::CheckNonZeroSender::<runtime::Runtime>::new(),
frame_system::CheckSpecVersion::<runtime::Runtime>::new(),
frame_system::CheckTxVersion::<runtime::Runtime>::new(),
Expand All @@ -334,7 +334,6 @@ fn weave_sign_call(
call.clone(),
extra.clone(),
(
(),
(),
runtime::VERSION.spec_version,
runtime::VERSION.transaction_version,
Expand Down
4 changes: 2 additions & 2 deletions runtimes/weave/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ where
// so the actual block number is `n`.
.saturating_sub(1);
let extra: SignedExtra = (
pallet_network_membership::CheckNetworkMembership::<Runtime>::new(),
//pallet_network_membership::CheckNetworkMembership::<Runtime>::new(),
frame_system::CheckNonZeroSender::<Runtime>::new(),
frame_system::CheckSpecVersion::<Runtime>::new(),
frame_system::CheckTxVersion::<Runtime>::new(),
Expand Down Expand Up @@ -1259,7 +1259,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
pub type BlockId = generic::BlockId<Block>;
/// The `SignedExtension` to the basic transaction logic.
pub type SignedExtra = (
pallet_network_membership::CheckNetworkMembership<Runtime>,
//pallet_network_membership::CheckNetworkMembership<Runtime>,
frame_system::CheckNonZeroSender<Runtime>,
frame_system::CheckSpecVersion<Runtime>,
frame_system::CheckTxVersion<Runtime>,
Expand Down

0 comments on commit 828770a

Please sign in to comment.