|
1 | 1 | use bulletin_polkadot_runtime as runtime; |
2 | | -use frame_support::{assert_ok, assert_noop}; |
3 | | -use frame_support::traits::{Hooks, OnIdle}; |
| 2 | +use frame_support::assert_ok; |
| 3 | +use frame_support::traits::Hooks; |
4 | 4 | use pallet_transaction_storage::{Call as TxCall, AuthorizationExtent, BAD_DATA_SIZE}; |
5 | 5 | use frame_support::dispatch::GetDispatchInfo; |
6 | 6 | use sp_core::{Pair, Encode}; |
7 | | -use runtime::{RuntimeOrigin, AllPalletsWithSystem, Weight, TransactionStorage, System, Runtime, BuildStorage, RuntimeCall, UncheckedExtrinsic, TxExtension, SignedPayload, Executive, Hash, Header}; |
| 7 | +use runtime::{RuntimeOrigin, System, Runtime, BuildStorage, RuntimeCall, UncheckedExtrinsic, TxExtension, SignedPayload, Executive, Hash, Header}; |
8 | 8 | use sp_runtime::generic::Era; |
9 | 9 | use sp_runtime::traits::Header as _; |
10 | 10 | use sp_runtime::traits::SaturatedConversion; |
11 | | -use sp_runtime::traits::Dispatchable; |
12 | 11 | use sp_keyring::Sr25519Keyring; |
13 | 12 | use sp_runtime::ApplyExtrinsicResult; |
14 | | -use sp_transaction_storage_proof::TransactionStorageProof; |
15 | 13 | use pallet_transaction_storage::DEFAULT_MAX_TRANSACTION_SIZE; |
16 | 14 |
|
17 | 15 | fn advance_block() { |
@@ -89,7 +87,6 @@ fn transaction_storage_runtime_sizes() { |
89 | 87 | let now = slot.saturated_into::<u64>() * runtime::SLOT_DURATION; |
90 | 88 | runtime::Timestamp::set(RuntimeOrigin::none(), now).unwrap(); |
91 | 89 |
|
92 | | - let mut block_number: u32 = 1; |
93 | 90 |
|
94 | 91 | let who: runtime::AccountId = sp_keyring::Sr25519Keyring::Alice.to_account_id(); |
95 | 92 | let sizes: [usize; 5] = [ |
@@ -118,7 +115,6 @@ fn transaction_storage_runtime_sizes() { |
118 | 115 | let res = construct_and_apply_extrinsic(alice_pair.clone(), call); |
119 | 116 | assert!(res.is_ok(), "Failed at size={} bytes: {:?}", size, res); |
120 | 117 |
|
121 | | - block_number += 1; |
122 | 118 | advance_block(); |
123 | 119 | } |
124 | 120 |
|
|
0 commit comments