Skip to content

Commit d9d8ee8

Browse files
committed
Merge branch 'develop' into feat/clarity-wasm-develop
2 parents 86f41a4 + c5f0ed8 commit d9d8ee8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6084
-885
lines changed

.dockerignore

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
Dockerfile*
22
target
3-
integration_tests/blockstack-consensus-data/
4-
integration_tests/test-out/
5-
api/data
6-
.git
7-
.venv
83
.dockerignore
9-
testnet/index.html
10-
testnet.log
11-
testnet-logs*
12-
legacy
13-
build-scripts
14-
dist

.github/actions/dockerfiles/Dockerfile.debian-source

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/clarity-js-sdk-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: Checkout latest clarity js sdk
3030
id: git_checkout
31-
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
3333
token: ${{ secrets.GH_TOKEN }}
3434
repository: ${{ env.CLARITY_JS_SDK_REPOSITORY }}
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Create Pull Request
4848
id: create_pr
49-
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
49+
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
5050
with:
5151
token: ${{ secrets.GH_TOKEN }}
5252
commit-message: "chore: update clarity-native-bin tag"

.github/workflows/clippy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
steps:
2323
- name: Checkout the latest code
2424
id: git_checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: Define Rust Toolchain
2727
id: define_rust_toolchain
2828
run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
2929
- name: Setup Rust Toolchain
3030
id: setup_rust_toolchain
31-
uses: actions-rust-lang/setup-rust-toolchain@v1
31+
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
3232
with:
3333
toolchain: ${{ env.RUST_TOOLCHAIN }}
3434
components: clippy

.github/workflows/core-build-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
- name: Checkout the latest code
1414
id: git_checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
- name: Define Rust Toolchain
1717
id: define_rust_toolchain
1818
run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
1919
- name: Setup Rust Toolchain
2020
id: setup_rust_toolchain
21-
uses: actions-rust-lang/setup-rust-toolchain@v1
21+
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
2222
with:
2323
toolchain: ${{ env.RUST_TOOLCHAIN }}
2424
- name: Build the binaries

.github/workflows/image-build-source.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ jobs:
2121
image:
2222
name: Build Image
2323
runs-on: ubuntu-latest
24-
strategy:
25-
fail-fast: false
26-
## Build a maximum of 2 images concurrently based on matrix.dist
27-
max-parallel: 2
28-
matrix:
29-
dist:
30-
- debian
3124
steps:
3225
## Increase swapfile
3326
- name: Increase swapfile
@@ -59,7 +52,7 @@ jobs:
5952
## Set docker metatdata
6053
- name: Docker Metadata ( ${{matrix.dist}} )
6154
id: docker_metadata
62-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 #v5.5.1
55+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 #v5.6.1
6356
with:
6457
images: |
6558
${{env.docker-org}}/${{ github.event.repository.name }}
@@ -71,9 +64,9 @@ jobs:
7164
## Build docker image
7265
- name: Build and Push ( ${{matrix.dist}} )
7366
id: docker_build
74-
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
67+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
7568
with:
76-
file: ./.github/actions/dockerfiles/Dockerfile.${{matrix.dist}}-source
69+
file: ./Dockerfile
7770
platforms: ${{ env.docker_platforms }}
7871
tags: ${{ steps.docker_metadata.outputs.tags }}
7972
labels: ${{ steps.docker_metadata.outputs.labels }}

.github/workflows/stacks-core-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
## checkout the code
7979
- name: Checkout the latest code
8080
id: git_checkout
81-
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
81+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8282

8383
- name: Run network relay tests
8484
id: nettest
@@ -96,10 +96,10 @@ jobs:
9696
steps:
9797
- name: Checkout the latest code
9898
id: git_checkout
99-
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
99+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
100100
- name: Execute core contract unit tests with clarinet-sdk
101101
id: clarinet_unit_test
102-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
102+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
103103
with:
104104
node-version: 18.x
105105
cache: "npm"
@@ -125,7 +125,7 @@ jobs:
125125
steps:
126126
- name: Checkout the latest code
127127
id: git_checkout
128-
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
128+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
129129
- name: Execute core contract unit tests in Clarinet
130130
id: clarinet_unit_test_v1
131131
uses: docker://hirosystems/clarinet:1.7.1

.vscode/launch.json

Lines changed: 42 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,31 @@
44
{
55
"type": "lldb",
66
"request": "launch",
7-
"name": "executable 'blockstack-core'",
7+
"name": "executable 'stacks-node'",
88
"cargo": {
9-
"args": ["build", "--bin=stacks-node"],
9+
"args": [
10+
"build",
11+
"--bin=stacks-node"
12+
],
1013
"filter": {
1114
"kind": "bin"
1215
}
1316
},
14-
"args": ["mockamoto"],
17+
"args": [
18+
"mockamoto"
19+
],
1520
"cwd": "${workspaceFolder}"
1621
},
1722
{
1823
"type": "lldb",
1924
"request": "launch",
2025
"name": "executable 'clarity-cli'",
2126
"cargo": {
22-
"args": ["build", "--bin=clarity-cli", "--package=blockstack-core"],
27+
"args": [
28+
"build",
29+
"--bin=clarity-cli",
30+
"--package=stackslib"
31+
],
2332
"filter": {
2433
"name": "clarity-cli",
2534
"kind": "bin"
@@ -33,37 +42,54 @@
3342
"request": "launch",
3443
"name": "executable 'blockstack-cli'",
3544
"cargo": {
36-
"args": ["build", "--bin=blockstack-cli", "--package=blockstack-core"],
45+
"args": [
46+
"build",
47+
"--bin=blockstack-cli",
48+
"--package=stackslib"
49+
],
3750
"filter": {
3851
"name": "blockstack-cli",
3952
"kind": "bin"
4053
}
4154
},
42-
"args": ["generate-sk"],
55+
"args": [
56+
"generate-sk"
57+
],
4358
"cwd": "${workspaceFolder}"
4459
},
4560
{
4661
"type": "lldb",
4762
"request": "launch",
4863
"name": "executable 'stacks-node' -- mocknet",
4964
"cargo": {
50-
"args": ["build", "--bin=stacks-node", "--package=stacks-node"],
65+
"args": [
66+
"build",
67+
"--bin=stacks-node",
68+
"--package=stacks-node"
69+
],
5170
"filter": {
5271
"name": "stacks-node",
5372
"kind": "bin"
5473
}
5574
},
56-
"args": ["mocknet"],
75+
"args": [
76+
"mocknet"
77+
],
5778
"cwd": "${workspaceFolder}"
5879
},
5980
{
6081
"type": "lldb",
6182
"request": "launch",
62-
"name": "unit tests in library 'blockstack_lib'",
83+
"name": "unit tests in library 'stackslib'",
6384
"cargo": {
64-
"args": ["test", "--no-run", "--lib", "--package=blockstack-core"],
85+
"args": [
86+
"test",
87+
"--no-run",
88+
"--lib",
89+
"--package=stackslib"
90+
],
6591
"filter": {
66-
"name": "blockstack_lib",
92+
"name": "stackslib",
6793
"kind": "lib"
6894
}
6995
},
@@ -73,13 +99,13 @@
7399
{
74100
"type": "lldb",
75101
"request": "launch",
76-
"name": "unit tests in executable 'blockstack-core'",
102+
"name": "unit tests in executable 'stacks-inspect'",
77103
"cargo": {
78104
"args": [
79105
"test",
80106
"--no-run",
81107
"--bin=stacks-inspect",
82-
"--package=blockstack-core"
108+
"--package=stackslib"
83109
],
84110
"filter": {
85111
"name": "stacks-inspect",
@@ -98,7 +124,7 @@
98124
"test",
99125
"--no-run",
100126
"--bin=clarity-cli",
101-
"--package=blockstack-core"
127+
"--package=stackslib"
102128
],
103129
"filter": {
104130
"name": "clarity-cli",
@@ -117,7 +143,7 @@
117143
"test",
118144
"--no-run",
119145
"--bin=blockstack-cli",
120-
"--package=blockstack-core"
146+
"--package=stackslib"
121147
],
122148
"filter": {
123149
"name": "blockstack-cli",
@@ -145,63 +171,6 @@
145171
},
146172
"args": [],
147173
"cwd": "${workspaceFolder}"
148-
},
149-
{
150-
"type": "lldb",
151-
"request": "launch",
152-
"name": "benchmark 'marf_bench'",
153-
"cargo": {
154-
"args": [
155-
"test",
156-
"--no-run",
157-
"--bench=marf_bench",
158-
"--package=blockstack-core"
159-
],
160-
"filter": {
161-
"name": "marf_bench",
162-
"kind": "bench"
163-
}
164-
},
165-
"args": [],
166-
"cwd": "${workspaceFolder}"
167-
},
168-
{
169-
"type": "lldb",
170-
"request": "launch",
171-
"name": "benchmark 'large_contract_bench'",
172-
"cargo": {
173-
"args": [
174-
"test",
175-
"--no-run",
176-
"--bench=large_contract_bench",
177-
"--package=blockstack-core"
178-
],
179-
"filter": {
180-
"name": "large_contract_bench",
181-
"kind": "bench"
182-
}
183-
},
184-
"args": [],
185-
"cwd": "${workspaceFolder}"
186-
},
187-
{
188-
"type": "lldb",
189-
"request": "launch",
190-
"name": "benchmark 'block_limits'",
191-
"cargo": {
192-
"args": [
193-
"test",
194-
"--no-run",
195-
"--bench=block_limits",
196-
"--package=blockstack-core"
197-
],
198-
"filter": {
199-
"name": "block_limits",
200-
"kind": "bench"
201-
}
202-
},
203-
"args": [],
204-
"cwd": "${workspaceFolder}"
205174
}
206175
]
207-
}
176+
}

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,31 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
77

88
## [Unreleased]
99

10-
## Added
10+
### Changed
11+
12+
- When a miner times out waiting for signatures, it will re-propose the same block instead of building a new block ([#5877](https://github.com/stacks-network/stacks-core/pull/5877))
13+
14+
## [3.1.0.0.7]
15+
16+
### Added
17+
18+
- Add `disable_retries` mode for events_observer disabling automatic retry on error
19+
20+
### Changed
21+
22+
- Implement faster cost tracker for default cost functions in Clarity
23+
- By default, miners will wait for a new tenure to start for a configurable amount of time after receiving a burn block before
24+
submitting a block commit. This will reduce the amount of RBF transactions miners are expected to need.
25+
- Add weight threshold and percentages to `StackerDBListener` logs
26+
- Signer will not allow reorg if more than one block in the current tenure has already been globally approved
27+
28+
## [3.1.0.0.6]
29+
30+
### Added
1131

1232
- The `BlockProposal` StackerDB message serialization struct now includes a `server_version` string, which represents the version of the node that the miner is using. ([#5803](https://github.com/stacks-network/stacks-core/pull/5803))
1333
- Add `vrf_seed` to the `/v3/sortitions` rpc endpoint
34+
- Added hot-reloading of `burnchain.burn_fee_cap` from a miner's config file ([#5857](https://github.com/stacks-network/stacks-core/pull/5857))
1435

1536
### Changed
1637

0 commit comments

Comments
 (0)