You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make disperser client backwards compatible (#1686)
* chore(apiserver): refactor GetPaymentState to highlight legacy conversion
* wip: attempt to make disperser_client backwards compatible
TODO: review the Claude generated getPaymentStateFromLegacyAPI... no idea if its OK or not.
* docs(apiserver): document convertAllQuorumsReplyToLegacy function
* fix(disperser_client): convertLegacyPaymentStateToNew returns error
* fix(disperser_client): set correct value for ReservationRateLimitWindow
* style: targetting -> targeting
* docs: remove outdated TODO comment
* docs: add docstring for getPaymentStateFromLegacyAPI
* fix: return error if PaymentGlobalParams==nil
* docs(proto): document GetPaymentStateReply fields
also GetPaymentStateForAllQuorumsReply fields
* docs(proto): document why GetPaymentStateRequest is separate type
from GetPaymentStateForAllQuorumsRequest
* style: remove outdated comment
* fix(disperser_client): onDemandEnabled value in convertLegacyPaymentStateToNew
* style: better error message in convertLegacyPaymentStateToNew
* refactor: convertLegacyPaymentStateToNew function
return early when no reservation exists, which makes the logic much simpler
* docs(proto): fix inaccurate cumulative_payment docstring
* style(disperser_client): set reservationAdvanceWindow to 0
in convertLegacyPaymentStateToNew
* fix(disp_client): convertLegacyPaymentStateToNew quorums setting logic
* docs(proto): remove wrong cumulative_payment comment
* style: remove unneeded comments
* style: add comment explaining why append is ok
* docs: move reservation_advance_window comment to proto
0 commit comments