diff --git a/api/clients/v2/accountant.go b/api/clients/v2/accountant.go index 0eb613b82..f5e1c920f 100644 --- a/api/clients/v2/accountant.go +++ b/api/clients/v2/accountant.go @@ -184,7 +184,13 @@ func (a *Accountant) SetPaymentState(paymentState *disperser_rpc.GetPaymentState } if paymentState.GetReservation() == nil { - a.reservation = core.DummyReservedPayment() + a.reservation = &core.ReservedPayment{ + SymbolsPerSecond: 0, + StartTimestamp: 0, + EndTimestamp: 0, + QuorumNumbers: []uint8{}, + QuorumSplits: []byte{}, + } } else { a.reservation.SymbolsPerSecond = uint64(paymentState.GetReservation().GetSymbolsPerSecond()) a.reservation.StartTimestamp = uint64(paymentState.GetReservation().GetStartTimestamp()) diff --git a/core/data.go b/core/data.go index 0308230dd..367faad32 100644 --- a/core/data.go +++ b/core/data.go @@ -619,27 +619,11 @@ type ReservedPayment struct { QuorumSplits []byte } -func DummyReservedPayment() *ReservedPayment { - return &ReservedPayment{ - SymbolsPerSecond: 0, - StartTimestamp: 0, - EndTimestamp: 0, - QuorumNumbers: []uint8{}, - QuorumSplits: []byte{}, - } -} - type OnDemandPayment struct { // Total amount deposited by the user CumulativePayment *big.Int } -func DummyOnDemandPayment() *OnDemandPayment { - return &OnDemandPayment{ - CumulativePayment: big.NewInt(0), - } -} - type BlobVersionParameters struct { CodingRate uint32 MaxNumOperators uint32