Limit transaction pool size (#1676)

* Avoid excessive hashing. Store extrinsic len.

* Implement pool limits.

* Fix issues.

* Make sure we return error in case it doesn't make into the pool.

* Pass parameters from CLI.

* Remove redundant todo.

* Fix tests.
This commit is contained in:
Tomasz Drwięga
2019-02-06 19:03:05 +01:00
committed by Gav Wood
parent 461cd384fc
commit 4e3eace15f
14 changed files with 398 additions and 38 deletions
@@ -15,4 +15,5 @@ sr-primitives = { path = "../../sr-primitives" }
[dev-dependencies]
assert_matches = "1.1"
parity-codec = "3.0"
test_runtime = { package = "substrate-test-runtime", path = "../../test-runtime" }