Skip to content

Commit

Permalink
Support MMR digest in block header (darwinia-network#358)
Browse files Browse the repository at this point in the history
* move mmr digest from sytem to darwinia pallet

* fix compile

* using tuple instead of vec

* update the map hasher

* add positions for leaves and prepare for later get_proof and verify functions

* add docs and add get proof function

* add tests and refactor codes

* update substrate dep and add header-mmr tests in travis

* fix format issue

* travis says can not parse, try again

* update decl error, and keep using panic when encoutering error in on_finalize, related to #384

* remove miss typing \ which should be used in <pre> code
  • Loading branch information
hackfisher authored Mar 24, 2020
1 parent 42c8624 commit 00da07d
Show file tree
Hide file tree
Showing 29 changed files with 898 additions and 460 deletions.
1 change: 1 addition & 0 deletions .maintain/ci/travis.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ readonly TEST_CRATES=(
'treasury'
'eth-relay'
'eth-backing'
'header-mmr'
);

function main() {
Expand Down
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,34 @@ jobs:
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=wasm
script: .maintain/ci/build_script.sh

- stage: Darwinia Test
- stage: Darwinia KTON Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native KTON
script: .maintain/ci/darwinia_test_script.sh kton

- stage: Darwinia Test
- stage: Darwinia RING Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native RING
script: .maintain/ci/darwinia_test_script.sh ring

- stage: Darwinia Test
- stage: Darwinia STAKING Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native STAKING
script: .maintain/ci/darwinia_test_script.sh staking

- stage: Darwinia Test
- stage: Darwinia TREASURY Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native TREASURY
script: .maintain/ci/darwinia_test_script.sh treasury

- stage: Darwinia Test
- stage: Darwinia ETHRELAY Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native ETHRELAY
script: .maintain/ci/darwinia_test_script.sh eth-relay

- stage: Darwinia Test
- stage: Darwinia ETHBACKING Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native ETHBACKING
script: .maintain/ci/darwinia_test_script.sh eth-backing

- stage: Darwinia HEADERMMR Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native HEADERMMR
script: .maintain/ci/darwinia_test_script.sh header-mmr

- stage: Darwinia Test
env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native ETHOFFCHAIN
script: .maintain/ci/darwinia_test_script.sh eth-offchain
Expand Down
Loading

0 comments on commit 00da07d

Please sign in to comment.