Beefy: add benchmarks for `report_fork_voting()` (#5188)
Related to #4523
This PR adds benchmarks for `report_fork_voting()`.
**Important: Even though the benchmarks are now available, we still use
`Weight::MAX`. That's because I realized while working on this PR that
there's still one missing piece. We should also check that the ancestry
proof is optimal. I plan to do this in a future PR, hopefully the last
one related to #4523.**
---------
Co-authored-by:
Branislav Kontur <bkontur@gmail.com>
Co-authored-by: command-bot <>
parent
05a8ba66
Showing
- Cargo.lock 413 additions, 512 deletionsCargo.lock
- polkadot/runtime/rococo/src/lib.rs 41 additions, 41 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/rococo/src/weights/mod.rs 1 addition, 0 deletionspolkadot/runtime/rococo/src/weights/mod.rs
- polkadot/runtime/rococo/src/weights/pallet_beefy_mmr.rs 89 additions, 0 deletionspolkadot/runtime/rococo/src/weights/pallet_beefy_mmr.rs
- polkadot/runtime/westend/src/lib.rs 10 additions, 8 deletionspolkadot/runtime/westend/src/lib.rs
- polkadot/runtime/westend/src/weights/mod.rs 1 addition, 0 deletionspolkadot/runtime/westend/src/weights/mod.rs
- polkadot/runtime/westend/src/weights/pallet_beefy_mmr.rs 89 additions, 0 deletionspolkadot/runtime/westend/src/weights/pallet_beefy_mmr.rs
- prdoc/pr_5188.prdoc 32 additions, 0 deletionsprdoc/pr_5188.prdoc
- substrate/bin/node/runtime/src/lib.rs 2 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/beefy-mmr/Cargo.toml 3 additions, 0 deletionssubstrate/frame/beefy-mmr/Cargo.toml
- substrate/frame/beefy-mmr/src/benchmarking.rs 129 additions, 0 deletionssubstrate/frame/beefy-mmr/src/benchmarking.rs
- substrate/frame/beefy-mmr/src/lib.rs 38 additions, 5 deletionssubstrate/frame/beefy-mmr/src/lib.rs
- substrate/frame/beefy-mmr/src/mock.rs 8 additions, 1 deletionsubstrate/frame/beefy-mmr/src/mock.rs
- substrate/frame/beefy-mmr/src/tests.rs 3 additions, 18 deletionssubstrate/frame/beefy-mmr/src/tests.rs
- substrate/frame/beefy-mmr/src/weights.rs 134 additions, 0 deletionssubstrate/frame/beefy-mmr/src/weights.rs
- substrate/frame/beefy/src/default_weights.rs 0 additions, 5 deletionssubstrate/frame/beefy/src/default_weights.rs
- substrate/frame/beefy/src/lib.rs 63 additions, 25 deletionssubstrate/frame/beefy/src/lib.rs
- substrate/frame/beefy/src/mock.rs 13 additions, 2 deletionssubstrate/frame/beefy/src/mock.rs
- substrate/frame/beefy/src/tests.rs 7 additions, 3 deletionssubstrate/frame/beefy/src/tests.rs
- substrate/frame/merkle-mountain-range/src/lib.rs 13 additions, 0 deletionssubstrate/frame/merkle-mountain-range/src/lib.rs
Please register or sign in to comment