From 1ffe6a11bf2f53f840cbc4429b6bab7df05c16a8 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 20 Mar 2021 11:13:56 +0100 Subject: [PATCH] SignedBlock (justifications field) (#3340) --- .../types/src/interfaces/runtime/definitions.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/types/src/interfaces/runtime/definitions.ts b/packages/types/src/interfaces/runtime/definitions.ts index 58d7ee29d1..882fccf5dc 100644 --- a/packages/types/src/interfaces/runtime/definitions.ts +++ b/packages/types/src/interfaces/runtime/definitions.ts @@ -79,7 +79,9 @@ export default { }, IndicesLookupSource: 'GenericLookupSource', Index: 'u32', - Justification: 'Bytes', + Justification: '(ConsensusEngineId, EncodedJustification)', + EncodedJustification: 'Bytes', + Justifications: 'Vec', KeyValue: '(StorageKey, StorageData)', KeyTypeId: 'u32', LockIdentifier: '[u8; 8]', @@ -121,9 +123,14 @@ export default { read: 'Weight', write: 'Weight' }, - SignedBlock: { + SignedBlock: 'SignedBlockWithJustifications', + SignedBlockWithJustification: { block: 'Block', - justification: 'Justification' + justification: 'Option' + }, + SignedBlockWithJustifications: { + block: 'Block', + justifications: 'Option' }, Slot: 'u64', StorageData: 'Bytes',