state_trieMigrationStatus RPC (#4664)

This commit is contained in:
Jaco
2022-03-18 09:40:37 +02:00
committed by GitHub
parent 8c87b16924
commit 9dfb5cb237
5 changed files with 21 additions and 4 deletions
@@ -394,6 +394,18 @@ export default {
}
],
type: 'TraceBlockResponse'
},
trieMigrationStatus: {
description: 'Check current migration state',
params: [
{
name: 'at',
type: 'BlockHash',
isHistoric: true,
isOptional: true
}
],
type: 'MigrationStatusResult'
}
},
types: {
@@ -422,6 +434,10 @@ export default {
wasm: 'bool'
},
KeyValueOption: '(StorageKey, Option<StorageData>)',
MigrationStatusResult: {
topRemainingToMigrate: 'u64',
childRemainingToMigrate: 'u64'
},
ReadProof: {
at: 'Hash',
proof: 'Vec<Bytes>'