From 885eff9914ab9da577d74161ce478f42c4f3241f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:16:04 +0000 Subject: [PATCH 1/2] chore: prepare release 0.8.0 --- ...and_renewed_fields_to_rpclatestrevision.md | 7 ------ .changeset/add_support_for_block_pruning.md | 7 ------ .changeset/automate_releases.md | 5 ---- ...pcrefresh_with_an_initial_sector_upload.md | 5 ---- ...k_with_empty_block_id_from_chainmanager.md | 5 ---- CHANGELOG.md | 23 +++++++++++++++++++ go.mod | 2 +- 7 files changed, 24 insertions(+), 30 deletions(-) delete mode 100644 .changeset/add_revised_and_renewed_fields_to_rpclatestrevision.md delete mode 100644 .changeset/add_support_for_block_pruning.md delete mode 100644 .changeset/automate_releases.md delete mode 100644 .changeset/extended_testrpcrenew_and_testrpcrefresh_with_an_initial_sector_upload.md delete mode 100644 .changeset/fix_panic_when_fetching_block_with_empty_block_id_from_chainmanager.md create mode 100644 CHANGELOG.md diff --git a/.changeset/add_revised_and_renewed_fields_to_rpclatestrevision.md b/.changeset/add_revised_and_renewed_fields_to_rpclatestrevision.md deleted file mode 100644 index c70a89b..0000000 --- a/.changeset/add_revised_and_renewed_fields_to_rpclatestrevision.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: major ---- - -# Add revised and renewed fields to RPCLatestRevision - -Adds two additional fields 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. diff --git a/.changeset/add_support_for_block_pruning.md b/.changeset/add_support_for_block_pruning.md deleted file mode 100644 index 95fe1ad..0000000 --- a/.changeset/add_support_for_block_pruning.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: minor ---- - -# Add support for block pruning - -The chain manager can now automatically delete blocks after a configurable number of confirmations. Note that this does not apply retroactively. diff --git a/.changeset/automate_releases.md b/.changeset/automate_releases.md deleted file mode 100644 index d5fea6e..0000000 --- a/.changeset/automate_releases.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# Automate releases diff --git a/.changeset/extended_testrpcrenew_and_testrpcrefresh_with_an_initial_sector_upload.md b/.changeset/extended_testrpcrenew_and_testrpcrefresh_with_an_initial_sector_upload.md deleted file mode 100644 index 1211c12..0000000 --- a/.changeset/extended_testrpcrenew_and_testrpcrefresh_with_an_initial_sector_upload.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# Extended TestRPCRenew and TestRPCRefresh with an initial sector upload diff --git a/.changeset/fix_panic_when_fetching_block_with_empty_block_id_from_chainmanager.md b/.changeset/fix_panic_when_fetching_block_with_empty_block_id_from_chainmanager.md deleted file mode 100644 index ba2f304..0000000 --- a/.changeset/fix_panic_when_fetching_block_with_empty_block_id_from_chainmanager.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# Fix panic when fetching block with empty block id from ChainManager diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..dbcc397 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,23 @@ +## 0.8.0 (2024-12-13) + +### Breaking Changes + +#### Add revised and renewed fields to RPCLatestRevision + +Adds two additional fields 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. + +### Features + +- Add revised and renewed fields to RPCLatestRevision + +#### Add support for block pruning + +The chain manager can now automatically delete blocks after a configurable number of confirmations. Note that this does not apply retroactively. + +### Fixes + +- remove duration param from RPCWrite impl +- Return 0 for nonexistent accounts +- Automate releases +- Extended TestRPCRenew and TestRPCRefresh with an initial sector upload +- Fix panic when fetching block with empty block id from ChainManager diff --git a/go.mod b/go.mod index bf49f04..19475c9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.sia.tech/coreutils // v0.7.0 +module go.sia.tech/coreutils // v0.8.0 go 1.23.1 From 2b2624c92f4227acb8c425834c4e298b6b099830 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Fri, 13 Dec 2024 08:18:15 -0800 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbcc397..603c4c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,18 +6,16 @@ Adds two additional fields 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. -### Features +- Remove unused duration param from `rhp4.RPCWrite` -- Add revised and renewed fields to RPCLatestRevision +### Features -#### Add support for block pruning +#### Add support for block pruning in v2 The chain manager can now automatically delete blocks after a configurable number of confirmations. Note that this does not apply retroactively. ### Fixes -- remove duration param from RPCWrite impl -- Return 0 for nonexistent accounts -- Automate releases +- Return 0 balance for nonexistent accounts instead of an error - Extended TestRPCRenew and TestRPCRefresh with an initial sector upload - Fix panic when fetching block with empty block id from ChainManager