mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 09:05:42 +00:00
Reject too large transactions (#558)
* Fix is_valid condition when removing transactions from the pool. * Less verbosity. * Reject too large transctions from the pool. * Bring back the warning level. * Fix link.
This commit is contained in:
@@ -111,7 +111,7 @@ impl<Hash, VEx, S, E> Pool<Hash, VEx, S, E> where
|
||||
let mut pool = self.pool.write();
|
||||
let mut results = Vec::with_capacity(hashes.len());
|
||||
for hash in hashes {
|
||||
results.push(pool.remove(hash, is_valid));
|
||||
results.push(pool.remove(hash, !is_valid));
|
||||
}
|
||||
results
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user