From 4911d55d2f74bfeb35a1d2a1651f85f3d4d6c9ff Mon Sep 17 00:00:00 2001 From: Emanuel Pargov Date: Mon, 5 Aug 2024 17:50:02 +0300 Subject: [PATCH] Remove CoreIndex from Guarantee --- internal/block/guarantee.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/internal/block/guarantee.go b/internal/block/guarantee.go index 26ba21ef..43eceba0 100644 --- a/internal/block/guarantee.go +++ b/internal/block/guarantee.go @@ -24,15 +24,9 @@ type GuaranteesExtrinsic struct { // Guarantee represents a single guarantee within the E_G extrinsic type Guarantee struct { - CoreIndex uint32 // Index of the core this guarantee is for - WorkReport WorkReport // The work report being guaranteed - Credential Credential // The credential proving the guarantee's validity - Timeslot time.Timeslot // The timeslot when this guarantee was made -} - -// Credential represents the credential a in the document -type Credential struct { - Signatures []CredentialSignature + WorkReport WorkReport // The work report being guaranteed + Credentials []CredentialSignature // The credential proving the guarantee's validity + Timeslot time.Timeslot // The timeslot when this guarantee was made } // CredentialSignature represents a single signature within the credential