mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-04 10:27:25 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -262,7 +262,8 @@ impl<B: ChainApi> Pool<B> {
|
||||
extrinsics.iter().map(|extrinsic| self.hash_of(extrinsic)).collect::<Vec<_>>();
|
||||
let in_pool_tags = self.validated_pool.extrinsics_tags(&in_pool_hashes);
|
||||
|
||||
// Zip the ones from the pool with the full list (we get pairs `(Extrinsic, Option<Vec<Tag>>)`)
|
||||
// Zip the ones from the pool with the full list (we get pairs `(Extrinsic,
|
||||
// Option<Vec<Tag>>)`)
|
||||
let all = extrinsics.iter().zip(in_pool_tags.into_iter());
|
||||
|
||||
let mut future_tags = Vec::new();
|
||||
@@ -1112,13 +1113,14 @@ mod tests {
|
||||
block_on(pool.submit_one(&BlockId::Number(0), SOURCE, xt)).unwrap();
|
||||
assert_eq!(pool.validated_pool().status().ready, 1);
|
||||
|
||||
// Now block import happens before the second transaction is able to finish verification.
|
||||
// Now block import happens before the second transaction is able to finish
|
||||
// verification.
|
||||
block_on(pool.prune_tags(&BlockId::Number(1), vec![provides], vec![])).unwrap();
|
||||
assert_eq!(pool.validated_pool().status().ready, 0);
|
||||
|
||||
// so when we release the verification of the previous one it will have
|
||||
// something in `requires`, but should go to ready directly, since the previous transaction was imported
|
||||
// correctly.
|
||||
// something in `requires`, but should go to ready directly, since the previous
|
||||
// transaction was imported correctly.
|
||||
tx.send(()).unwrap();
|
||||
|
||||
// then
|
||||
|
||||
Reference in New Issue
Block a user