mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
Make signature batching use specialized methods (#6616)
It was a mistake to use the `*_verify` methods for signature batching. This pr move the signature batching into their own functions. This is required, because otherwise transaction signature verification infers with other signature verifications. This pr also temporarily disables signature batching. The functionality stays, but we need to make sure that all nodes have the new runtime interface, before we can bring back signature batching.
This commit is contained in:
@@ -293,11 +293,13 @@ where
|
||||
// any initial checks
|
||||
Self::initial_checks(&block);
|
||||
|
||||
let batching_safeguard = sp_runtime::SignatureBatching::start();
|
||||
let signature_batching = sp_runtime::SignatureBatching::start();
|
||||
|
||||
// execute extrinsics
|
||||
let (header, extrinsics) = block.deconstruct();
|
||||
Self::execute_extrinsics_with_book_keeping(extrinsics, *header.number());
|
||||
if !sp_runtime::SignatureBatching::verify(batching_safeguard) {
|
||||
|
||||
if !signature_batching.verify() {
|
||||
panic!("Signature verification failed.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user