Skip to content

Latest commit

 

History

History
87 lines (44 loc) · 3.12 KB

CHANGELOG.md

File metadata and controls

87 lines (44 loc) · 3.12 KB

0.10.2 (2025-02-20)

Features

Add helpers to get revision as an element from v1/v2 file contract element diffs

##274 by @chris124567

In the old ForEachFileContractElement interface, the revision was provided as a pointer to a (V2)FileContractElement. In the new system of diffs, the revision is only provided as a (V2)FileContract. There are multiple places where it is useful to have the revision as an element, and in all of these places more or less the same code will be duplicated unless we create this helper.

Add RPCReplenish to RHP4

Adds an RPC to RHP4 that enables renters to set a target balance instead of first fetching the current balance and then funding the account with the difference. This is primarily to speed up account funding and reduce round trips when managing a large number of accounts.

0.10.1 (2025-02-10)

Fixes

  • Fix Siafund ClaimStart not being recorded

0.10.0 (2025-02-04)

Breaking Changes

Consensus diffs

##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.)

Fixed a panic when unmarshalling unknown spend policy types

An error will now be returned when trying to encode a transaction with an unset SpendPolicy

0.9.1 (2025-01-18)

Fixes

  • Fix account JSON encoding

0.9.0 (2024-12-18)

Breaking Changes

  • Add host public key to AccountToken

Features

  • Add helper for generating account tokens

Fixes

  • Allow v1 contracts to be resolved immediately

0.8.0 (2024-12-13)

Breaking Changes

Add revisable to RPCLatestRevision

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.

0.7.3 (2024-12-12)

Features

  • Update golang.org/x/crypto from 0.30.0 to 0.31.0

0.7.2 (2024-12-12)

Features

Allow revisions to set MaxRevisionNumber

MaxRevisionNumber was previously used to finalize contracts, but that is not the case anymore, so the restriction can be removed.

Fixes

  • Include storage cost in renter renewal cost

0.7.1 (2024-12-04)

Fixes

  • Automate releases