Merkle Mountain Range & BEEFY integration (#2101)
* Switch branch. * Implement basic MMR leaf. * Revert "Switch branch." This reverts commit 7f4d41c67f27ca560c53fc63fd3bd06ac182403c. * Bump substrate. * Integrate BEEFY. Bump all. Fix missing imports. * Use beefy pallet to get authorities. * Bump BEEFY repo. * Use next authority set instead of the current one. * Start BEEFY service. * Fix BEEFY start up. * Cache BEEFY authority set. * Add BEEFY ValidatorSetId to MMR * Fix code. * Apply suggestions from code review Co-authored-by:André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by:
Hernando Castano <HCastano@users.noreply.github.com> * Review grumbles. * Update beefy repo. * Work-around missing protocol. * Revert "Work-around missing protocol." This reverts commit 0a6257a8bccc1c67e966898cdedc408c6469ffd6. * Add beefy peers set config. * Expose storage of BEEFY. * Uncompress BEEFY keys for merkle tree. * Update ordering. * Switch to branch. * Bump deps. * Switch to custom beefy. * Add MMR RuntimeApi and custom rpc. * Add set length details. * Fix compilation. * Expose MmrLeaf storage. * Expose MmrLeaf storage. * Don't use session handler, and rather compute & cache beefy details on call. * Don't use session handler, and rather compute & cache beefy details on call. * Fixes. * Update Cargo.lock. * Switch back to master. * Update lockfile. * Fix xcm print issue. * Cargo.lock. * Use master branch. * Remove extra dep. * Fix tests. * Update Cargo.lock * Add BEEFY & MMR to westend. * Implement session keys migration. * Update testnet script. * start BEEFY for all node types * Update Cargo.lock * fix Cargo.toml * resolve another merge conflict * add Westend BEEFY keys * Apply suggestions from code review Co-authored-by:
Hernando Castano <HCastano@users.noreply.github.com> * Update BEEFY. * Add Rococo BEEFY keys * resolve merge issue * fix pallet indices * fix Westend OldSessionKey * remove unused imports in Westend runtime * Fix compilation for Westend. * address review * start BEEFY gadget conditionally * address review again * fix typo * remove duplicate * remove another duplicate * well * add missing stuff * cleanup Cargo.toml files - revert unnecessary changes - add missing /std dependencies - remove unused dependencies * runtime: remove unused structs from rococo runtime * node: cleanup service Co-authored-by:
André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by:
Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by:
adoerr <0xad@gmx.net> Co-authored-by:
André Silva <andrerfosilva@gmail.com>
Showing
- polkadot/Cargo.lock 313 additions, 151 deletionspolkadot/Cargo.lock
- polkadot/node/service/Cargo.toml 3 additions, 0 deletionspolkadot/node/service/Cargo.toml
- polkadot/node/service/src/chain_spec.rs 271 additions, 230 deletionspolkadot/node/service/src/chain_spec.rs
- polkadot/node/service/src/client.rs 6 additions, 1 deletionpolkadot/node/service/src/client.rs
- polkadot/node/service/src/lib.rs 45 additions, 5 deletionspolkadot/node/service/src/lib.rs
- polkadot/rpc/Cargo.toml 16 additions, 13 deletionspolkadot/rpc/Cargo.toml
- polkadot/rpc/src/lib.rs 28 additions, 3 deletionspolkadot/rpc/src/lib.rs
- polkadot/runtime/common/Cargo.toml 11 additions, 3 deletionspolkadot/runtime/common/Cargo.toml
- polkadot/runtime/common/src/lib.rs 3 additions, 1 deletionpolkadot/runtime/common/src/lib.rs
- polkadot/runtime/common/src/mmr.rs 216 additions, 0 deletionspolkadot/runtime/common/src/mmr.rs
- polkadot/runtime/kusama/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/kusama/Cargo.toml
- polkadot/runtime/kusama/src/lib.rs 34 additions, 0 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/parachains/Cargo.toml 1 addition, 1 deletionpolkadot/runtime/parachains/Cargo.toml
- polkadot/runtime/polkadot/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/polkadot/Cargo.toml
- polkadot/runtime/polkadot/src/lib.rs 34 additions, 0 deletionspolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/rococo/Cargo.toml 13 additions, 5 deletionspolkadot/runtime/rococo/Cargo.toml
- polkadot/runtime/rococo/src/lib.rs 115 additions, 2 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/test-runtime/Cargo.toml 2 additions, 0 deletionspolkadot/runtime/test-runtime/Cargo.toml
- polkadot/runtime/test-runtime/src/lib.rs 34 additions, 0 deletionspolkadot/runtime/test-runtime/src/lib.rs
- polkadot/runtime/westend/Cargo.toml 9 additions, 0 deletionspolkadot/runtime/westend/Cargo.toml
Please register or sign in to comment