Skip to content

Commit bf2d28b

Browse files
authored
Merge branch 'develop' into develop
2 parents 3d676de + 3730ca3 commit bf2d28b

File tree

352 files changed

+10373
-9095
lines changed

Some content is hidden

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

352 files changed

+10373
-9095
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[alias]
22
stacks-node = "run --package stacks-node --"
33
fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module"
4+
clippy-stacks = "clippy -p libstackerdb -p stacks-signer -p pox-locking -p clarity -p libsigner -p stacks-common --no-deps --tests --all-features -- -D warnings"
45

56
# Uncomment to improve performance slightly, at the cost of portability
67
# * Note that native binaries may not run on CPUs that are different from the build machine

.github/workflows/bitcoin-tests.yml

Lines changed: 94 additions & 145 deletions
Large diffs are not rendered by default.

.github/workflows/clippy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,4 @@ jobs:
3434
components: clippy
3535
- name: Clippy
3636
id: clippy
37-
uses: actions-rs/clippy-check@v1
38-
with:
39-
token: ${{ secrets.GITHUB_TOKEN }}
40-
args: -p libstackerdb -p stacks-signer -p pox-locking -p clarity -p libsigner -p stacks-common --no-deps --tests --all-features -- -D warnings
37+
run: cargo clippy-stacks

.github/workflows/pr-differences-mutants.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: PR Differences Mutants
22

33
on:
4-
pull_request:
5-
types:
6-
- opened
7-
- reopened
8-
- synchronize
9-
- ready_for_review
10-
paths:
11-
- '**.rs'
4+
# Disabling PR mutants (issue #5806)
5+
# pull_request:
6+
# types:
7+
# - opened
8+
# - reopened
9+
# - synchronize
10+
# - ready_for_review
11+
# paths:
12+
# - '**.rs'
1213
workflow_dispatch:
1314

1415
concurrency:

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,42 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
99

1010
### Added
1111

12+
### Changed
13+
14+
### Fixed
15+
16+
- Error responses to /v2/transactions/fees are once again expressed as JSON ([#4145](https://github.com/stacks-network/stacks-core/issues/4145)).
17+
18+
## [3.1.0.0.5]
19+
20+
### Added
21+
22+
- Add miner configuration option `tenure_extend_cost_threshold` to specify the percentage of the tenure budget that must be spent before a time-based tenure extend is attempted
23+
24+
### Changed
25+
26+
- Miner will include other transactions in blocks with tenure extend transactions (#5760)
27+
- Add `block_rejection_timeout_steps` to miner configuration for defining rejections-based timeouts while waiting for signers response (#5705)
28+
- Miner will not issue a tenure extend until at least half of the block budget has been spent (#5757)
29+
30+
### Fixed
31+
32+
- Miners who restart their nodes immediately before a winning tenure now correctly detect that
33+
they won the tenure after their nodes restart ([#5750](https://github.com/stacks-network/stacks-core/issues/5750)).
34+
35+
## [3.1.0.0.4]
36+
37+
### Added
38+
1239
- The stacks-node miner now performs accurate tenure-extensions in certain bitcoin block production
1340
cases: when a bitcoin block is produced before the previous bitcoin block's Stacks tenure started.
1441
Previously, the miner had difficulty restarting their missed tenure and extending into the new
1542
bitcoin block, leading to 1-2 bitcoin blocks of missed Stacks block production.
43+
- The event dispatcher now includes `consensus_hash` in the `/new_block` and `/new_burn_block` payloads. ([#5677](https://github.com/stacks-network/stacks-core/pull/5677))
44+
45+
## Changed
46+
47+
- When a miner reorgs the previous tenure due to a poorly timed block, it can now continue to build blocks on this new chain tip (#5691)
1648

1749
## [3.1.0.0.3]
1850

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,18 @@ You can automatically reformat your commit via:
387387
cargo fmt-stacks
388388
```
389389

390+
## Clippy Warnings
391+
392+
PRs will be checked against `clippy` and will _fail_ if any clippy warnings are generated.
393+
Unfortunately, not all existing clippy warnings have been addressed throughout stacks-core, so arguments must be passed via the command line.
394+
Therefore, we handle `clippy` configurations using a Cargo alias: `cargo clippy-stacks`
395+
396+
You can check what warnings need to be addressed locally via:
397+
398+
```bash
399+
cargo clippy-stacks
400+
```
401+
390402
## Comments
391403

392404
Comments are very important for the readability and correctness of the codebase. The purpose of comments is:

0 commit comments

Comments
 (0)