Skip to content
Commit ff439ee3 authored by Serban Iorga's avatar Serban Iorga Committed by GitHub
Browse files

pallet-mmr: move offchain logic to client-side gadget (#12753)



* Move MMR utils methods from pallet to primitives

Signed-off-by: default avatarSerban Iorga <[email protected]>

* Add method to MmrApi

* Move forks expanding logic from babe to primitives

* Implement MMR gadget

* Remove prunning logic from the MMR pallet

* Code review changes: 1st iteration

* Replace MaybeCanonEngine with CanonEngineBuilder

* fix mmr_leaves_count() for kitchen sink demo

* Update client/merkle-mountain-range/src/canon_engine.rs

Co-authored-by: default avatarAdrian Catangiu <[email protected]>

* Code review changes: 2nd iteration

* fix INDEXING_PREFIX

* impl review comments

* add documentation and minor rename

Signed-off-by: default avatarSerban Iorga <[email protected]>
Co-authored-by: default avatarAdrian Catangiu <[email protected]>
parent d56214c2
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