forked from SiaFoundation/coreutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
806 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Prepare Release | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
prepare-release: | ||
if: "!contains(github.event.head_commit.message, 'chore: prepare release')" # Skip merges from releases | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name github-actions[bot] | ||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: knope-dev/action@407e9ef7c272d2dd53a4e71e39a7839e29933c48 | ||
- run: knope prepare-release --verbose | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
prepare-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name github-actions[bot] | ||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: knope-dev/action@407e9ef7c272d2dd53a4e71e39a7839e29933c48 | ||
- run: knope release --verbose | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## 0.10.0 (2025-01-15) | ||
|
||
### Breaking Changes | ||
|
||
#### Increased V2 Allow Height to 526,000 | ||
|
||
Delays activation of the v2 hardfork to June 6th, 2025 in response to concerns about the scope of updates necessary for partners to support v2 | ||
|
||
### Fixes | ||
|
||
- Improve locking in SingleAddressWallet by avoiding acquiring the mutex before a db transaction | ||
- Increased default UTXO reservation in SingleAddressWallet to 3 hours | ||
|
||
## 0.9.1 (2025-01-12) | ||
|
||
### Fixes | ||
|
||
- Release locked host UTXOs if contract formation, renewal, or refresh fails | ||
- Release locked UTXOs if contract formation, renewal, or refresh fails | ||
|
||
## 0.9.0 (2024-12-19) | ||
|
||
### Breaking Changes | ||
|
||
#### Finalize V2 Hardfork Dates | ||
|
||
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 | ||
|
||
### Fixes | ||
|
||
- Fix rhp4 server not returning ErrNotEnoughFunds when account has insufficient balance | ||
|
||
## 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. | ||
|
||
- Remove unused duration param from `rhp4.RPCWrite` | ||
|
||
### Features | ||
|
||
#### 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 | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package chain_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"go.sia.tech/core/types" | ||
"go.sia.tech/coreutils/chain" | ||
"go.sia.tech/coreutils/testutil" | ||
) | ||
|
||
func TestGetEmptyBlockID(t *testing.T) { | ||
n, genesisBlock := testutil.V2Network() | ||
store, tipState, err := chain.NewDBStore(chain.NewMemDB(), n, genesisBlock) | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
cm := chain.NewManager(store, tipState) | ||
_, _ = cm.Block(types.BlockID{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.