Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #55 from ASuciuX/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
ASuciuX authored Feb 7, 2024
2 parents 49bf905 + 7c7a527 commit 733dada
Show file tree
Hide file tree
Showing 235 changed files with 17,738 additions and 6,558 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bitcoin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ jobs:
- tests::neon_integrations::test_problematic_txs_are_not_stored
- tests::neon_integrations::use_latest_tip_integration_test
- tests::neon_integrations::confirm_unparsed_ongoing_ops
- tests::neon_integrations::min_txs
- tests::should_succeed_handling_malformed_and_valid_txs
- tests::nakamoto_integrations::simple_neon_integration
- tests::nakamoto_integrations::mine_multiple_per_tenure_integration
- tests::nakamoto_integrations::block_proposal_api_endpoint
- tests::nakamoto_integrations::miner_writes_proposed_block_to_stackerdb
- tests::nakamoto_integrations::correct_burn_outs
- tests::signer::stackerdb_dkg_sign
- tests::signer::stackerdb_block_proposal
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
git add src/_data/boot-contracts-reference.json
if $(git diff --staged --quiet --exit-code); then
echo "No reference.json changes, stopping"
echo "::set-output name=open_pr::0"
echo "open_pr=0" >> "$GITHUB_OUTPUT"
else
git remote add robot https://github.com/$ROBOT_OWNER/$ROBOT_REPO
git commit -m "auto: update Clarity references JSONs from stacks-core@${GITHUB_SHA}"
git push robot $ROBOT_BRANCH
echo "::set-output name=open_pr::1"
echo "open_pr=1" >> "$GITHUB_OUTPUT"
fi
- name: Open PR
Expand Down
82 changes: 51 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE

### Added

- New RPC endpoint `/v2/stacker_set/{cycle_number}` to fetch stacker sets in PoX-4
- New `/new_pox_anchor` endpoint for broadcasting PoX anchor block processing.
- Stacker bitvec in NakamotoBlock

Expand All @@ -18,37 +19,7 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
`stack-stx` and `stack-extend`), the signing-key parameter is removed from
`delegate-*` functions.

## [2.4.0.0.4]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.3]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.2]

This is a hotfix that changes the logging failure behavior from panicking to dropping
the log message (PR #3784).

## [2.4.0.0.4]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.3]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.2]

This is a hotfix that changes the logging failure behavior from panicking to dropping
the log message (PR #3784).

## [Unreleased]
## [2.4.0.1.0]

### Added

Expand All @@ -69,6 +40,25 @@ the log message (PR #3784).
- New RPC endpoint at /v2/block_proposal for miner to validate proposed block.
Only accessible on local loopback interface

In addition, this introduces a set of improvements to the Stacks miner behavior. In
particular:
* The VRF public key can be re-used across node restarts.
* Settings that affect mining are hot-reloaded from the config file. They take
effect once the file is updated; there is no longer a need to restart the
node.
* The act of changing the miner settings in the config file automatically
triggers a subsequent block-build attempt, allowing the operator to force the
miner to re-try building blocks.
* This adds a new tip-selection algorithm that minimizes block orphans within a
configurable window of time.
* When configured, the node will automatically stop mining if it is not achieving a
targeted win rate over a configurable window of blocks.
* When configured, the node will selectively mine transactions from only certain
addresses, or only of certain types (STX-transfers, contract-publishes,
contract-calls).
* When configured, the node will optionally only RBF block-commits if it can
produce a block with strictly more transactions.

### Changed

- `developer-mode` is no longer enabled in the default feature set. This is the correct default behavior, since the stacks-node should NOT build with developer-mode enabled by default. Tools that need to use developer-mode should enable it explicitly.
Expand All @@ -85,6 +75,36 @@ the log message (PR #3784).
- The node now gracefully shuts down even if it is in the middle of a handshake with
bitcoind. Fixes issue #3734.

## [2.4.0.0.4]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.3]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.2]

This is a hotfix that changes the logging failure behavior from panicking to dropping
the log message (PR #3784).

## [2.4.0.0.4]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.3]

This is a high-priority hotfix that addresses a bug in transaction processing which
could impact miner availability.

## [2.4.0.0.2]

This is a hotfix that changes the logging failure behavior from panicking to dropping
the log message (PR #3784).

## [2.4.0.0.1]

This is a minor change to add `txid` fields into the log messages from failing
Expand Down
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ Community leaders will follow these Community Impact Guidelines in determining t

**Consequence**: A permanent ban from any sort of public interaction within the community.

### Secret Code:
The code to the contest is: BITCOINL2

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
Expand Down
104 changes: 88 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You can observe the state machine in action locally by running:

```bash
$ cd testnet/stacks-node
$ cargo run --bin stacks-node -- start --config=./conf/testnet-follower-conf.toml
$ cargo run --bin stacks-node -- start --config ./conf/testnet-follower-conf.toml
```

_On Windows, many tests will fail if the line endings aren't `LF`. Please ensure that you are have git's `core.autocrlf` set to `input` when you clone the repository to avoid any potential issues. This is due to the Clarity language currently being sensitive to line endings._
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/Dockerfile.linux-glibc-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& CC=aarch64-linux-gnu-gcc \
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out

Expand Down
4 changes: 2 additions & 2 deletions build-scripts/Dockerfile.linux-glibc-armv7
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& CC=arm-linux-gnueabihf-gcc \
CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} \
cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /
2 changes: 1 addition & 1 deletion build-scripts/Dockerfile.linux-glibc-x64
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y git
RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cd ${BUILD_DIR} \
&& rustup target add ${TARGET} \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out

Expand Down
3 changes: 2 additions & 1 deletion build-scripts/Dockerfile.linux-musl-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ COPY . .
RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cd ${BUILD_DIR} \
&& rustup target add ${TARGET} \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} --bin stacks-node --bin stacks-inspect --bin clarity-cli --bin blockstack-cli \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out

FROM scratch AS export-stage
COPY --from=build /out/stacks-inspect /out/blockstack-cli /out/clarity-cli /out/stacks-node /

Loading

0 comments on commit 733dada

Please sign in to comment.