Test for contracts instantly renewing
PROGRAMMING TASK
Description of Task
A test is needed to confirm that contracts will not be formed if settings of the contract cause it to immediately renew upon formation.
Reason or Need for Change
If contracts are instantly renewing after formation, then it means that the contract code needs to be improved to catch those contract/host settings that would lead to an instant renew. This would also cause the renter to be spending money on contracts that end up storing very little or no data.
Design / Proposal
The definition of instant should be flushed out. There is the literal case of the contract being renewed on the iteration of threadedContractMaintenance
immediately after the formation of the contract. However there is probably some period of time or minimum amount of data we would expect to use the contract for before it is renewed.