client: refuse to import blocks that revert finality (#3432)

* client: don't import blocks that revert finality

* client: test import of blocks that revert finality

* client: replace tempdir with tempfile in test
This commit is contained in:
André Silva
2019-08-18 18:05:16 +02:00
committed by Gavin Wood
parent 6c5fbe64ca
commit 8eacdb54de
3 changed files with 124 additions and 7 deletions
+1
View File
@@ -29,6 +29,7 @@ sr-api-macros = { path = "../sr-api-macros" }
[dev-dependencies]
env_logger = "0.6"
tempfile = "3.1"
test-client = { package = "substrate-test-runtime-client", path = "../test-runtime/client" }
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }