Skip to content

Commit c015d14

Browse files
committed
Merge remote-tracking branch 'core/develop' into feat/miner-metrics
2 parents 562344a + fd029be commit c015d14

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

+8236
-2882
lines changed

.github/actions/dockerfiles/Dockerfile.alpine-binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN case "${TAG}" in \
3131
;; \
3232
*) \
3333
echo "/bin/stacks-node mainnet" > /tmp/command.sh && \
34-
rm /bin/blockstack-cli /bin/clarity-cli /bin/relay-server /bin/stacks-events /bin/stacks-inspect \
34+
rm /bin/blockstack-cli /bin/clarity-cli /bin/stacks-events /bin/stacks-inspect \
3535
;; \
3636
esac && \
3737
chmod +x /tmp/command.sh

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN case "${TAG}" in \
3131
;; \
3232
*) \
3333
echo "/bin/stacks-node mainnet" > /tmp/command.sh && \
34-
rm /bin/blockstack-cli /bin/clarity-cli /bin/relay-server /bin/stacks-events /bin/stacks-inspect \
34+
rm /bin/blockstack-cli /bin/clarity-cli /bin/stacks-events /bin/stacks-inspect \
3535
;; \
3636
esac && \
3737
chmod +x /tmp/command.sh

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ testnet/index.html
6161
/testnet/helium/target/
6262
/contrib/tools/puppet-chain/target/
6363
/contrib/core-contract-tests/.cache/
64+
/contrib/tools/config-docs-generator/target/
6465

6566
# These are backup files generated by rustfmt
6667
**/*.rs.bk

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
1414
- `stacks_node_miner_stop_reason_total`: Counts the number of times the miner stopped mining due to various reasons.
1515
- Always report the number of transactions mined in the last attempt, even if there were 0
1616

17+
- Added a new option `--postcondition-mode [allow, deny]` to `blockstack-cli publish` command, to set the post-condition mode to allow or deny on the transaction (default is deny)
18+
1719
### Changed
1820

1921
- Changed default mempool walk strategy to `NextNonceWithHighestFeeRate`
2022

2123
### Fixed
24+
25+
- Fixed an issue that prevented the correct usage of anchor mode options (`--microblock-only`, `--block-only`) when using `blockstack-cli publish` command.
2226
- Fix several bugs in the mock-miner that caused it to fail to mine blocks in certain conditions
2327

2428
## [3.1.0.0.12]

Cargo.lock

Lines changed: 86 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ members = [
77
"clarity",
88
"stx-genesis",
99
"libstackerdb",
10-
"contrib/tools/relay-server",
1110
"libsigner",
1211
"stacks-signer",
13-
"testnet/stacks-node"]
12+
"testnet/stacks-node",
13+
"contrib/tools/config-docs-generator"]
1414

1515
# Dependencies we want to keep the same between workspace members
1616
[workspace.dependencies]

contrib/nix/flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
(lib.fileset.fileFilter (file: file.hasExt "clar") ../..)
105105
#
106106
(craneLib.fileset.commonCargoSources ../../clarity)
107-
(craneLib.fileset.commonCargoSources ../../contrib/tools/relay-server)
108107
(craneLib.fileset.commonCargoSources ../../libsigner)
109108
(craneLib.fileset.commonCargoSources ../../libstackerdb)
110109
(craneLib.fileset.commonCargoSources ../../pox-locking)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[package]
2+
name = "config-docs-generator"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[[bin]]
7+
name = "extract-docs"
8+
path = "src/extract_docs.rs"
9+
10+
[[bin]]
11+
name = "generate-markdown"
12+
path = "src/generate_markdown.rs"
13+
14+
# Add integration test configuration
15+
[[test]]
16+
name = "integration"
17+
path = "tests/integration.rs"
18+
19+
[dependencies]
20+
serde = { version = "1.0", features = ["derive"] }
21+
serde_json = "1.0"
22+
clap = { version = "4.0", features = ["derive"] }
23+
regex = "1.0"
24+
anyhow = "1.0"
25+
once_cell = "1.18"
26+
27+
# Add test dependencies
28+
[dev-dependencies]
29+
tempfile = "3.0"
30+
assert_cmd = "2.0"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Use a specific nightly toolchain for reproducible builds
2+
FROM rustlang/rust@sha256:04690ffa09cddd358b349272173155319f384e57816614eea0840ec7f9422862
3+
4+
RUN apt-get update -y \
5+
&& apt-get install -y --no-install-recommends \
6+
jq \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
# Set the working directory for building
10+
WORKDIR /build
11+
12+
# Copy the entire project root to preserve structure
13+
# Copy from three levels up (project root) to maintain the directory structure
14+
COPY ../../../ /build
15+
16+
RUN useradd -ms /bin/bash docs-builder
17+
RUN chown docs-builder -R /build
18+
USER docs-builder
19+
20+
# Pre-build the config-docs-generator binaries during image build
21+
RUN cargo build --package config-docs-generator --release
22+
23+
# Set the working directory where the project will be mounted at runtime
24+
WORKDIR /project_root
25+
26+
# Set environment variables for generate-config-docs.sh
27+
ENV PROJECT_ROOT=/project_root \
28+
CARGO_TARGET_DIR=/tmp/stacks-config-docs/target \
29+
TEMP_DIR=/tmp/stacks-config-docs/doc-generation \
30+
EXTRACT_DOCS_BIN=/build/target/release/extract-docs \
31+
GENERATE_MARKDOWN_BIN=/build/target/release/generate-markdown \
32+
OUTPUT_DIR=/project_root/target/generated-docs \
33+
SKIP_BUILD=true
34+
35+
# Create the Docker-specific temp directory
36+
RUN mkdir -p /tmp/stacks-config-docs
37+
38+
ENTRYPOINT ["/build/generate-config-docs.sh"]

0 commit comments

Comments
 (0)