mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 04:07:57 +00:00
BlockId removal: tx-pool refactor (#1678)
It changes following APIs: - trait `ChainApi` -- `validate_transaction` - trait `TransactionPool` --`submit_at` --`submit_one` --`submit_and_watch` and some implementation details, in particular: - impl `Pool` --`submit_at` --`resubmit_at` --`submit_one` --`submit_and_watch` --`prune_known` --`prune` --`prune_tags` --`resolve_block_number` --`verify` --`verify_one` - revalidation queue All tests are also adjusted. --------- Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
committed by
GitHub
parent
a846b74604
commit
ab3a3bc278
@@ -219,7 +219,6 @@ mod tests {
|
||||
use jsonrpsee::{core::Error as JsonRpseeError, types::error::CallError};
|
||||
use sc_transaction_pool::BasicPool;
|
||||
use sp_runtime::{
|
||||
generic::BlockId,
|
||||
transaction_validity::{InvalidTransaction, TransactionValidityError},
|
||||
ApplyExtrinsicResult,
|
||||
};
|
||||
@@ -245,11 +244,12 @@ mod tests {
|
||||
};
|
||||
t.into_unchecked_extrinsic()
|
||||
};
|
||||
let hash_of_block0 = client.info().genesis_hash;
|
||||
// Populate the pool
|
||||
let ext0 = new_transaction(0);
|
||||
block_on(pool.submit_one(&BlockId::number(0), source, ext0)).unwrap();
|
||||
block_on(pool.submit_one(hash_of_block0, source, ext0)).unwrap();
|
||||
let ext1 = new_transaction(1);
|
||||
block_on(pool.submit_one(&BlockId::number(0), source, ext1)).unwrap();
|
||||
block_on(pool.submit_one(hash_of_block0, source, ext1)).unwrap();
|
||||
|
||||
let accounts = System::new(client, pool, DenyUnsafe::Yes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user