Mmr persist state (#12822)

client/mmr: persisting gadget state across runs

Fixes #12780

* client/mmr: on init do canonicalization catch-up

* client/mmr: add more tests

* client/mmr: persist gadget progress in aux db

* client/mmr: add more tests

* client/mmr: replace async_std with tokio

* remove leftover comment

* address review comments

Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
Adrian Catangiu
2022-12-07 12:19:46 +02:00
committed by GitHub
parent 72a7fa035b
commit 1657feae3b
6 changed files with 480 additions and 85 deletions
+2
View File
@@ -4137,6 +4137,7 @@ dependencies = [
"futures",
"log",
"parity-scale-codec",
"parking_lot 0.12.1",
"sc-block-builder",
"sc-client-api",
"sc-offchain",
@@ -4148,6 +4149,7 @@ dependencies = [
"sp-io",
"sp-mmr-primitives",
"sp-runtime",
"sp-tracing",
"substrate-test-runtime-client",
"tokio",
]