Adrian Catangiu 4ae0d9a8e3 pallet-mmr: fix offchain db for sync from zero (#12498)
* pallet-mmr: cosmetic improvements

* pallet-mmr: fix offchain storage for initial sync

* address review comments

* pallet-mmr: change offchain fork-resistant key to `(prefix, pos, parent_hash)`

Do this so that both canon and fork-resitant keys have the same
`(prefix, pos).encode()` prefix. Might be useful in the future if we'd
be able to to "get" offchain db entries using key prefixes as well.

Signed-off-by: acatangiu <adrian@parity.io>

Signed-off-by: acatangiu <adrian@parity.io>
2022-10-17 09:09:47 +00:00
S
Description
No description provided
529 MiB
Languages
Rust 99.8%
Shell 0.2%