SiaFoundation / core

Core packages for the Sia project
MIT License
51 stars 7 forks source link

Fix ContractRenewalCollateral #135

Closed peterjan closed 7 months ago

peterjan commented 7 months ago

I noticed renewal failures in our logs that indicate we're not properly respecting the host's MaxCollateral setting.

{"level":"error","date":"2023-12-07T16:56:27Z","component":"autopilot.contractor","msg":"renewal failed, err: couldn't renew contract: RPCRenew: failed to read RPCRenewContractHostAdditions: ReadResponse: failed to validate renewal: collateral exceeds maximum: expected at most 10000000000000000000000000000 got 10000047475326975980269993984\n","hk":"ed25519:c4b451fa7ab7085763119aeb1aa34db524c5dc6416dc77c5ba82100eb9687790","fcid":"fcid:5a32d8bbfb7e6a29f874ad2ded500d46e3e9aa4675db624b7f782b7fd7f45e05"}
peterjan commented 7 months ago

closing this out for now - still an issue but not with ContractRenewalCollateral