grandpa: report equivocations with unsigned extrinsics (#6656)
* grandpa: use unsigned extrinsics for equivocation reporting * grandpa: allow signed reports as well * grandpa: change runtime api for submitting unsigned extrinsics * grandpa: fix tests * grandpa: add test for unsigned validation * grandpa: add benchmark for equivocation proof checking * offences: fix grandpa benchmark * grandpa: add proper weight for equivocation reporting extrinsic * grandpa: fix weight unit
Showing
- Cargo.lock 2 additions, 0 deletionsCargo.lock
- bin/node-template/runtime/src/lib.rs 1 addition, 1 deletionbin/node-template/runtime/src/lib.rs
- bin/node/cli/src/service.rs 1 addition, 3 deletionsbin/node/cli/src/service.rs
- bin/node/runtime/Cargo.toml 1 addition, 0 deletionsbin/node/runtime/Cargo.toml
- bin/node/runtime/src/lib.rs 6 additions, 11 deletionsbin/node/runtime/src/lib.rs
- bin/node/testing/src/keyring.rs 0 additions, 1 deletionbin/node/testing/src/keyring.rs
- bin/utils/subkey/src/main.rs 0 additions, 2 deletionsbin/utils/subkey/src/main.rs
- client/finality-grandpa/src/environment.rs 5 additions, 3 deletionsclient/finality-grandpa/src/environment.rs
- client/finality-grandpa/src/tests.rs 1 addition, 1 deletionclient/finality-grandpa/src/tests.rs
- frame/grandpa/Cargo.toml 6 additions, 0 deletionsframe/grandpa/Cargo.toml
- frame/grandpa/src/benchmarking.rs 106 additions, 0 deletionsframe/grandpa/src/benchmarking.rs
- frame/grandpa/src/equivocation.rs 131 additions, 173 deletionsframe/grandpa/src/equivocation.rs
- frame/grandpa/src/lib.rs 155 additions, 44 deletionsframe/grandpa/src/lib.rs
- frame/grandpa/src/mock.rs 15 additions, 82 deletionsframe/grandpa/src/mock.rs
- frame/grandpa/src/tests.rs 123 additions, 16 deletionsframe/grandpa/src/tests.rs
- frame/offences/benchmarking/src/lib.rs 7 additions, 12 deletionsframe/offences/benchmarking/src/lib.rs
- primitives/finality-grandpa/src/lib.rs 9 additions, 10 deletionsprimitives/finality-grandpa/src/lib.rs
- test-utils/runtime/src/lib.rs 1 addition, 1 deletiontest-utils/runtime/src/lib.rs
Please register or sign in to comment