From 83b554dfd75f01242724095988709b7ab2c37917 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 19:31:38 +0000 Subject: [PATCH] chore: prepare release 2.0.0 --- .changeset/add_support_for_rhp4.md | 7 --- ...ade_existing_configs_instead_of_exiting.md | 5 -- .changeset/automate_changelog_generation.md | 5 -- ...nfig_manager_to_be_consistent_with_rhp4.md | 5 -- .changeset/refactor_sector_management.md | 7 --- .changeset/remove_rhp_session_endpoints.md | 5 -- .changeset/support_v2_hardfork.md | 26 ---------- .changeset/switch_to_core_consensus.md | 7 --- CHANGELOG.md | 50 +++++++++++++++++++ go.mod | 2 +- 10 files changed, 51 insertions(+), 68 deletions(-) delete mode 100644 .changeset/add_support_for_rhp4.md delete mode 100644 .changeset/attempt_to_upgrade_existing_configs_instead_of_exiting.md delete mode 100644 .changeset/automate_changelog_generation.md delete mode 100644 .changeset/move_rhp2_and_rhp3_settings_into_the_config_manager_to_be_consistent_with_rhp4.md delete mode 100644 .changeset/refactor_sector_management.md delete mode 100644 .changeset/remove_rhp_session_endpoints.md delete mode 100644 .changeset/support_v2_hardfork.md delete mode 100644 .changeset/switch_to_core_consensus.md diff --git a/.changeset/add_support_for_rhp4.md b/.changeset/add_support_for_rhp4.md deleted file mode 100644 index eb1ad4a0..00000000 --- a/.changeset/add_support_for_rhp4.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: minor ---- - -# Add RHP4 support - -RHP4 is the next generation of renter-host protocol for the Sia storage network. It dramatically increases performance compared to RHP3, improves contract payouts, reduces collateral lockup, and enables features necessary for light clients. The new protocol will be available and activated starting at block height `513400` (March 10th, 2025). diff --git a/.changeset/attempt_to_upgrade_existing_configs_instead_of_exiting.md b/.changeset/attempt_to_upgrade_existing_configs_instead_of_exiting.md deleted file mode 100644 index 41db4015..00000000 --- a/.changeset/attempt_to_upgrade_existing_configs_instead_of_exiting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: minor ---- - -# Attempt to upgrade existing configs instead of exiting diff --git a/.changeset/automate_changelog_generation.md b/.changeset/automate_changelog_generation.md deleted file mode 100644 index 070e0edc..00000000 --- a/.changeset/automate_changelog_generation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# Automate changelog generation diff --git a/.changeset/move_rhp2_and_rhp3_settings_into_the_config_manager_to_be_consistent_with_rhp4.md b/.changeset/move_rhp2_and_rhp3_settings_into_the_config_manager_to_be_consistent_with_rhp4.md deleted file mode 100644 index 2a6b4757..00000000 --- a/.changeset/move_rhp2_and_rhp3_settings_into_the_config_manager_to_be_consistent_with_rhp4.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# Move RHP2 and RHP3 settings into the config manager to be consistent with RHP4 diff --git a/.changeset/refactor_sector_management.md b/.changeset/refactor_sector_management.md deleted file mode 100644 index c69638d2..00000000 --- a/.changeset/refactor_sector_management.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: minor ---- - -# Refactor Sector Management - -Improves sector lookups by 50% on average by removing the sector lock tables and moving reference pruning out of the hot path. \ No newline at end of file diff --git a/.changeset/remove_rhp_session_endpoints.md b/.changeset/remove_rhp_session_endpoints.md deleted file mode 100644 index cab0b559..00000000 --- a/.changeset/remove_rhp_session_endpoints.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: major ---- - -# Remove RHP Session endpoints diff --git a/.changeset/support_v2_hardfork.md b/.changeset/support_v2_hardfork.md deleted file mode 100644 index a2c20456..00000000 --- a/.changeset/support_v2_hardfork.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -default: major ---- - -# Support V2 Hardfork - -The V2 hardfork is scheduled to modernize Sia's consensus protocol, which has been untouched since Sia's mainnet launch back in 2014, and improve accessibility of the storage network. To ensure a smooth transition from V1, it will be executed in two phases. Additional documentation on upgrading will be released in the near future. - -#### V2 Highlights -- Drastically reduces blockchain size on disk -- Improves UTXO spend policies - including HTLC support for Atomic Swaps -- More efficient contract renewals - reducing lock up requirements for hosts and renters -- Improved transfer speeds - enables hot storage - -#### Phase 1 - Allow Height -- **Activation Height:** `513400` (March 10th, 2025) -- **New Features:** V2 transactions, contracts, and RHP4 -- **V1 Support:** Both V1 and V2 will be supported during this phase -- **Purpose:** This period gives time for integrators to transition from V1 to V2 -- **Requirements:** Users will need to update to support the hardfork before this block height - -#### Phase 2 - Require Height -- **Activation Height:** `526000` (June 6th, 2025) -- **New Features:** The consensus database can be trimmed to only store the Merkle proofs -- **V1 Support:** V1 will be disabled, including RHP2 and RHP3. Only V2 transactions will be accepted -- **Requirements:** Developers will need to update their apps to support V2 transactions and RHP4 before this block height diff --git a/.changeset/switch_to_core_consensus.md b/.changeset/switch_to_core_consensus.md deleted file mode 100644 index b6105937..00000000 --- a/.changeset/switch_to_core_consensus.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: major ---- - -# Switch to `core` consensus - -Removes the last legacy code from `siad`. Switching between Mainnet and Testnet can now be done with a CLI flag e.g. `--network=zen`. This will require hosts to resync the blockchain. Refrain from upgrading if contracts are about to expire. diff --git a/CHANGELOG.md b/CHANGELOG.md index d67ef482..3f86eaad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,53 @@ +## 2.0.0 (2024-12-20) + +### Breaking Changes + +- Remove RHP Session endpoints + +#### Support V2 Hardfork + +The V2 hardfork is scheduled to modernize Sia's consensus protocol, which has been untouched since Sia's mainnet launch back in 2014, and improve accessibility of the storage network. To ensure a smooth transition from V1, it will be executed in two phases. Additional documentation on upgrading will be released in the near future. + +##### V2 Highlights +- Drastically reduces blockchain size on disk +- Improves UTXO spend policies - including HTLC support for Atomic Swaps +- More efficient contract renewals - reducing lock up requirements for hosts and renters +- Improved transfer speeds - enables hot storage + +##### Phase 1 - Allow Height +- **Activation Height:** `513400` (March 10th, 2025) +- **New Features:** V2 transactions, contracts, and RHP4 +- **V1 Support:** Both V1 and V2 will be supported during this phase +- **Purpose:** This period gives time for integrators to transition from V1 to V2 +- **Requirements:** Users will need to update to support the hardfork before this block height + +##### Phase 2 - Require Height +- **Activation Height:** `526000` (June 6th, 2025) +- **New Features:** The consensus database can be trimmed to only store the Merkle proofs +- **V1 Support:** V1 will be disabled, including RHP2 and RHP3. Only V2 transactions will be accepted +- **Requirements:** Developers will need to update their apps to support V2 transactions and RHP4 before this block height + +#### Switch to `core` consensus + +Removes the last legacy code from `siad`. Switching between Mainnet and Testnet can now be done with a CLI flag e.g. `--network=zen`. This will require hosts to resync the blockchain. Refrain from upgrading if contracts are about to expire. + +### Features + +- Attempt to upgrade existing configs instead of exiting + +#### Add RHP4 support + +RHP4 is the next generation of renter-host protocol for the Sia storage network. It dramatically increases performance compared to RHP3, improves contract payouts, reduces collateral lockup, and enables features necessary for light clients. The new protocol will be available and activated starting at block height `513400` (March 10th, 2025). + +#### Refactor Sector Management + +Improves sector lookups by 50% on average by removing the sector lock tables and moving reference pruning out of the hot path. + +### Fixes + +- Automate changelog generation +- Move RHP2 and RHP3 settings into the config manager to be consistent with RHP4 + ## 1.1.2 ### Breaking changes diff --git a/go.mod b/go.mod index 48c16cd1..349e7e03 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.sia.tech/hostd +module go.sia.tech/hostd // v2.0.0 go 1.23.1