This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
pallet-mmr: move offchain logic to client-side gadget #12753
Merged
Merged
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
31f2bf8
Move MMR utils methods from pallet to primitives
serban300 ad18dc2
Add method to MmrApi
serban300 ccb71cd
Move forks expanding logic from babe to primitives
serban300 67ebfde
Implement MMR gadget
serban300 ebb81df
Remove prunning logic from the MMR pallet
serban300 8857248
Code review changes: 1st iteration
serban300 4f56ae6
Replace MaybeCanonEngine with CanonEngineBuilder
serban300 cb6a96f
fix mmr_leaves_count() for kitchen sink demo
serban300 f21593c
Update client/merkle-mountain-range/src/canon_engine.rs
serban300 2cb3b3b
Code review changes: 2nd iteration
serban300 54fa18e
fix INDEXING_PREFIX
serban300 710e698
Merge remote-tracking branch 'upstream/master' into mmr
serban300 b6e733e
Merge branch 'master' of github.com:paritytech/substrate into mmr
acatangiu 4981702
impl review comments
acatangiu e39b651
add documentation and minor rename
acatangiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| [package] | ||
| name = "mmr-gadget" | ||
| version = "4.0.0-dev" | ||
| authors = ["Parity Technologies <[email protected]>"] | ||
| edition = "2021" | ||
| license = "GPL-3.0-or-later WITH Classpath-exception-2.0" | ||
| repository = "https://github.com/paritytech/substrate" | ||
| description = "MMR Client gadget for substrate" | ||
| homepage = "https://substrate.io" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
| codec = { package = "parity-scale-codec", version = "3.0.0" } | ||
| futures = "0.3" | ||
| log = "0.4" | ||
| beefy-primitives = { version = "4.0.0-dev", path = "../../primitives/beefy" } | ||
| sc-client-api = { version = "4.0.0-dev", path = "../api" } | ||
| sp-api = { version = "4.0.0-dev", path = "../../primitives/api" } | ||
| sp-blockchain = { version = "4.0.0-dev", path = "../../primitives/blockchain" } | ||
| sp-consensus = { version = "0.10.0-dev", path = "../../primitives/consensus/common" } | ||
| sp-core = { version = "7.0.0", path = "../../primitives/core" } | ||
| sp-io = { version = "7.0.0", path = "../../primitives/io" } | ||
| sp-mmr-primitives = { version = "4.0.0-dev", path = "../../primitives/merkle-mountain-range" } | ||
| sc-offchain = { version = "4.0.0-dev", path = "../offchain" } | ||
| sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" } | ||
|
|
||
| [dev-dependencies] | ||
| tokio = "1.17.0" | ||
| sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" } | ||
| substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" } | ||
| async-std = { version = "1.11.0", default-features = false } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.