diff --git a/Blockchain/Sources/Blockchain/Types/State.swift b/Blockchain/Sources/Blockchain/Types/State.swift index fec94ad3..2644d3ce 100644 --- a/Blockchain/Sources/Blockchain/Types/State.swift +++ b/Blockchain/Sources/Blockchain/Types/State.swift @@ -4,16 +4,13 @@ import Utils public struct State: Sendable { public struct ReportItem: Sendable, Equatable { public var workReport: WorkReport - public var guarantors: LimitedSizeArray public var timeslot: TimeslotIndex public init( workReport: WorkReport, - guarantors: LimitedSizeArray, timeslot: TimeslotIndex ) { self.workReport = workReport - self.guarantors = guarantors self.timeslot = timeslot } } @@ -204,14 +201,12 @@ extension State.ReportItem: ScaleCodec.Encodable { public init(config: ProtocolConfigRef, from decoder: inout some ScaleCodec.Decoder) throws { try self.init( workReport: WorkReport(config: config, from: &decoder), - guarantors: decoder.decode(), timeslot: decoder.decode() ) } public func encode(in encoder: inout some ScaleCodec.Encoder) throws { try encoder.encode(workReport) - try encoder.encode(guarantors) try encoder.encode(timeslot) } }