pub fn prepare_validation_payload<T: Config>()Expand description
Construct and emit a signed ValidatePayload and its signature as an event.
This is a read-only convenience extrinsic that does not mutate any on-chain state.
It is intended to support the [Self::validate] extrinsic workflow by producing
the signed payload and signature required to call it.
Since [Self::validate] accepts both a signed origin and an unsigned payload,
callers need a way to obtain a correctly signed payload before submitting.
This extrinsic bridges that gap by performing the signing on behalf of the
local node and emitting the result as an [Event::InspectValidatePayload] event.
§Execution Model
This extrinsic reads from node-local offchain storage to retrieve the active affidavit key. It is therefore client-specific: the result reflects the state of the validator node executing the call, and may differ across nodes.
§Notes
- Gated by the
devfeature. Must not be included in production runtimes. - The emitted payload and signature can be submitted directly to [
Self::validate]. - Requires that the node holds a finalized active affidavit key in offchain storage.
§Errors
Returns a DispatchError if the active affidavit key is not finalized,
not found in the local keystore, or signing fails.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
[Pallet::prepare_validation_payload].