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
+1
View File
@@ -5,6 +5,7 @@
Changes: Changes:
- Add bounty type definitions from treasury - Add bounty type definitions from treasury
- Add support for `grandpa_proveFinality` RPC
## 1.34.1 Sep 21, 2020 ## 1.34.1 Sep 21, 2020
@@ -8,6 +8,25 @@ import { Definitions } from '../../types';
export default { export default {
rpc: { 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: { roundState: {
description: 'Returns the state of the current best round state as well as the ongoing background rounds', description: 'Returns the state of the current best round state as well as the ongoing background rounds',
params: [], params: [],
@@ -28,6 +47,7 @@ export default {
AuthorityIndex: 'u64', AuthorityIndex: 'u64',
AuthorityList: 'Vec<NextAuthority>', AuthorityList: 'Vec<NextAuthority>',
AuthorityWeight: 'u64', AuthorityWeight: 'u64',
EncodedFinalityProofs: 'Bytes',
GrandpaEquivocation: { GrandpaEquivocation: {
_enum: { _enum: {
Prevote: 'GrandpaEquivocationValue', Prevote: 'GrandpaEquivocationValue',