Skip to content

Commit 678a08f

Browse files
authored
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.
1 parent 287697e commit 678a08f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,13 @@ where
293293
// any initial checks
294294
Self::initial_checks(&block);
295295

296-
let batching_safeguard = sp_runtime::SignatureBatching::start();
296+
let signature_batching = sp_runtime::SignatureBatching::start();
297+
297298
// execute extrinsics
298299
let (header, extrinsics) = block.deconstruct();
299300
Self::execute_extrinsics_with_book_keeping(extrinsics, *header.number());
300-
if !sp_runtime::SignatureBatching::verify(batching_safeguard) {
301+
302+
if !signature_batching.verify() {
301303
panic!("Signature verification failed.");
302304
}
303305

0 commit comments

Comments
 (0)