Support mmr_generateBatchProof RPC (#4831)

This commit is contained in:
Jaco
2022-05-17 15:23:11 +03:00
committed by GitHub
parent 48b43b9129
commit a95d36d67a
2 changed files with 23 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@
Changes:
- Adjust extrinsic inspect for signed/unsigned
- Add support for `mmr_generateBatchProof` RPC
## 8.4.2 May 15, 2022
@@ -8,6 +8,22 @@ import type { Definitions } from '../../types';
export default {
rpc: {
generateBatchProof: {
description: 'Generate MMR proof for the given leaf indices.',
params: [
{
name: 'leafIndices',
type: 'Vec<u64>'
},
{
name: 'at',
type: 'BlockHash',
isHistoric: true,
isOptional: true
}
],
type: 'MmrLeafProof'
},
generateProof: {
description: 'Generate MMR proof for given leaf index.',
params: [
@@ -22,10 +38,15 @@ export default {
isOptional: true
}
],
type: 'MmrLeafProof'
type: 'MmrLeafBatchProof'
}
},
types: {
MmrLeafBatchProof: {
blockHash: 'BlockHash',
leaves: 'Bytes',
proof: 'Bytes'
},
MmrLeafProof: {
blockHash: 'BlockHash',
leaf: 'Bytes',