mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
Add submit_finality_proof_ex call to the GRANDPA pallet (#2821)
* depreacte submit_finality_proof and introduce submit_finality_proof_ex instead * propagate changes to the rest of runtime crates * tests for new call * suppress deprecation warning * revert changes to benchmarks to avoid unnecessary compilation issues when integrating to other repos
This commit is contained in:
committed by
Bastian Köcher
parent
a7255831ca
commit
4d53c846e7
@@ -38,11 +38,11 @@ There are two main things in GRANDPA that help building light clients:
|
||||
|
||||
## Pallet Operations
|
||||
|
||||
The main entrypoint of the pallet is the `submit_finality_proof` call. It has two arguments - the finalized
|
||||
headers and associated GRANDPA justification. The call simply verifies the justification using current
|
||||
validators set and checks if header is better than the previous best header. If both checks are passed, the
|
||||
header (only its useful fields) is inserted into the runtime storage and may be used by other pallets to verify
|
||||
storage proofs.
|
||||
The main entrypoint of the pallet is the `submit_finality_proof_ex` call. It has three arguments - the finalized
|
||||
headers, associated GRANDPA justification and ID of the authority set that has generated this justification. The
|
||||
call simply verifies the justification using current validators set and checks if header is better than the
|
||||
previous best header. If both checks are passed, the header (only its useful fields) is inserted into the runtime
|
||||
storage and may be used by other pallets to verify storage proofs.
|
||||
|
||||
The submitter pays regular fee for submitting all headers, except for the mandatory header. Since it is
|
||||
required for the pallet operations, submitting such header is free. So if you're ok with session-length
|
||||
|
||||
Reference in New Issue
Block a user