Implement GrandpaApi::submit_report_equivocation_unsigned_extrinsic
Bug summary
The GRANDPA equivocation runtime API was not implemented in the runtime.
In runtime/common/src/apis.rs:
-
GrandpaApi_submit_report_equivocation_unsigned_extrinsicalways returnedNone, -
GrandpaApi_generate_key_ownership_proofalways returnedNone.
Impact
Even when a valid GRANDPA equivocation proof existed, the standard runtime API submission path could not work.
This prevented the expected automatic GRANDPA offence reporting flow from consensus components.
Expected behavior
-
GrandpaApi_generate_key_ownership_proofshould return a valid proof when available, -
GrandpaApi_submit_report_equivocation_unsigned_extrinsicshould submit the unsigned report and returnSome(())on success.