##270 by @lukechampine
This replaces the ForEach
update API with slices of "diffs" -- new types wrapping the various element types. This was originally intended as an ergonomics improvement (since it's annoying to e.g. break out of a ForEach
callback), but it ended up significantly simplifying most MidState
-related code: it consolidated the interrelated maps within MidState
, and enabled a much saner rewrite of the update JSON types.
I originally left the ForEach
methods in place (with a // Deprecated
warning), but later removed them entirely; we're going to update all the callsites in coreutils
anyway, so there's little reason to keep them around. (ForEachTreeNode
remains, though, since it's used by explored
.)
An error will now be returned when trying to encode a transaction with an unset SpendPolicy
- Fix account JSON encoding
- Add host public key to AccountToken
- Add helper for generating account tokens
- Allow v1 contracts to be resolved immediately
Adds two additional flags to the RPCLatestRevision response. The Revisable
field indicates whether the host will accept further revisions to the contract. A host will not accept revisions too close to the proof window or revisions on contracts that have already been resolved. The Renewed
field indicates whether the contract was renewed. If the contract was renewed, the renter can use FileContractID.V2RenewalID
to get the ID of the new contract.
- Update
golang.org/x/crypto
from 0.30.0 to 0.31.0
MaxRevisionNumber
was previously used to finalize contracts, but that is not the case anymore, so the restriction can be removed.
- Include storage cost in renter renewal cost
- Automate releases