Skip to content
Snippets Groups Projects
Commit 4ae0d9a8 authored by Adrian Catangiu's avatar Adrian Catangiu Committed by GitHub
Browse files

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: default avataracatangiu <adrian@parity.io>

Signed-off-by: default avataracatangiu <adrian@parity.io>
parent 37538f04
Branches
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment