Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/clients/v2/disperser_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,14 @@ func convertLegacyPaymentStateToNew(legacyReply *disperser_rpc.GetPaymentStateRe
}

// Apply the global params to all quorums, both on-demand and reservation.
onDemandQuorums := legacyReply.PaymentGlobalParams.OnDemandQuorumNumbers
onDemandQuorums := legacyReply.GetPaymentGlobalParams().OnDemandQuorumNumbers
if len(onDemandQuorums) == 0 {
// Disperser v0.9.0 has a bug where it does not return on-demand quorums: https://github.com/Layr-Labs/eigenda/pull/1699
// Until we upgrade all dispersers, we will assume that on-demand quorums are 0 and 1.
// TODO: this should instead return an error once we have upgraded all dispersers.
onDemandQuorums = []uint32{0, 1}
}
reservationQuorums := legacyReply.Reservation.QuorumNumbers
reservationQuorums := legacyReply.GetReservation().QuorumNumbers
// There may be overlapping quorums but it doesn't matter since we will apply the same global params to all of them.
allQuorums := append(reservationQuorums, onDemandQuorums...)

Expand Down
Loading