[subsystem-bench] Add mocks for own assignments triggering (#5042)
Since https://github.com/paritytech/polkadot-sdk/pull/4772, the
benchamrks triggers its own assignments, but the mocks weren't properly
hooked up, so that the approval is sent as well, so they would have
counted as no-shows and impact the time it takes for a block to be
approved.
Fixed by adding mocks for availability recovery and candidate-validation
and hook those into the benchmark.
Signed-off-by:
Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Showing
- polkadot/node/subsystem-bench/src/lib/approval/mod.rs 13 additions, 2 deletionspolkadot/node/subsystem-bench/src/lib/approval/mod.rs
- polkadot/node/subsystem-bench/src/lib/mock/availability_recovery.rs 73 additions, 0 deletions...ode/subsystem-bench/src/lib/mock/availability_recovery.rs
- polkadot/node/subsystem-bench/src/lib/mock/candidate_validation.rs 74 additions, 0 deletions...node/subsystem-bench/src/lib/mock/candidate_validation.rs
- polkadot/node/subsystem-bench/src/lib/mock/mod.rs 2 additions, 0 deletionspolkadot/node/subsystem-bench/src/lib/mock/mod.rs
- polkadot/node/subsystem-bench/src/lib/mock/runtime_api.rs 10 additions, 3 deletionspolkadot/node/subsystem-bench/src/lib/mock/runtime_api.rs
Please register or sign in to comment