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:
Tomasz Drwięga
2018-08-14 13:13:19 +02:00
committed by Gav Wood
parent e83d85f620
commit b580d38e51
4 changed files with 17 additions and 9 deletions
@@ -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
}