Recovery Contracts need Spending Info
siac
experiences a negative currency panic due to Recovered Contracts
not having any spending information. We need to persist the spending information in the contract so that we can reference that information to prevent the panic as well as be able to track spending across periods even with a recovered node.
This would negate #3579 (closed) and we could revert the commit mentioned in that follow up issue to ensure we have resolved the root cause of the panic.
Follow up created for tracking the removal of the unneeded siac code:
The following discussion from !3702 (merged) should be addressed:
-
@ChrisSchinnerl started a discussion: Looks like this is always the exact same code? Might be good to add a helper function in a follow-up MR.
Edited by Matthew Sevey