Remove math.MaxUint64 checks and rely on `RenewedTo` instead · Issue #1721 · SiaFoundation/renterd · GitHub
More Web Proxy on the site http://driver.im/
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
Once we remove RHP2 and RHP3 from the codebase, we should remove the MaxUint64 "hack" which updates the revision number to the max for v2 contracts in chainsubscriber.go as well. We should also remove all remaining checks for that sentinel value and instead rely on the RenewedTo of contracts.
That also means, we need to update our chain subscriber code to pick up on any renewals for a contract and update the RenewedTo field accordingly. Usually that's not necessary since we update the database directly after a renewal, but it might be necessary if the renewal succeeded but something prevented us from writing it to the database.
The text was updated successfully, but these errors were encountered:
Once we remove RHP2 and RHP3 from the codebase, we should remove the
MaxUint64
"hack" which updates the revision number to the max for v2 contracts inchainsubscriber.go
as well. We should also remove all remaining checks for that sentinel value and instead rely on theRenewedTo
of contracts.That also means, we need to update our chain subscriber code to pick up on any renewals for a contract and update the
RenewedTo
field accordingly. Usually that's not necessary since we update the database directly after a renewal, but it might be necessary if the renewal succeeded but something prevented us from writing it to the database.The text was updated successfully, but these errors were encountered: