Add support for grandpa_proveFinality RPC (#2633)

* Add support for grandpa_proveFinality RPC

* CHANGELOG
This commit is contained in:
Jaco Greeff
2020-09-22 12:18:41 +02:00
committed by GitHub
parent 67e1e07714
commit 3de336fdff
2 changed files with 21 additions and 0 deletions
@@ -8,6 +8,25 @@ import { Definitions } from '../../types';
export default {
rpc: {
proveFinality: {
description: 'Prove finality for the range (begin; end] hash.',
params: [
{
name: 'begin',
type: 'BlockHash'
},
{
name: 'end',
type: 'BlockHash'
},
{
name: 'authoritiesSetId',
type: 'u64',
isOptional: true
}
],
type: 'Option<EncodedFinalityProofs>'
},
roundState: {
description: 'Returns the state of the current best round state as well as the ongoing background rounds',
params: [],
@@ -28,6 +47,7 @@ export default {
AuthorityIndex: 'u64',
AuthorityList: 'Vec<NextAuthority>',
AuthorityWeight: 'u64',
EncodedFinalityProofs: 'Bytes',
GrandpaEquivocation: {
_enum: {
Prevote: 'GrandpaEquivocationValue',