Skip to content

Commit fa2fce4

Browse files
committed
Merge branch 'develop' into chore/build-for-wasm32
2 parents c8bb20f + 7d63003 commit fa2fce4

Some content is hidden

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

85 files changed

+184
-146
lines changed

.github/actions/bitcoin-int-tests/Dockerfile.atlas-test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN cd / && tar -xvzf bitcoin-25.0-x86_64-linux-gnu.tar.gz
1414
RUN ln -s /bitcoin-25.0/bin/bitcoind /bin/
1515

1616
ENV BITCOIND_TEST 1
17-
WORKDIR /src/testnet/stacks-node
17+
WORKDIR /src/stacks-node
1818
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_integration_test
1919
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_stress_integration_test

.github/actions/bitcoin-int-tests/Dockerfile.generic.bitcoin-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /src/
44

55
COPY . .
66

7-
WORKDIR /src/testnet/stacks-node
7+
WORKDIR /src/stacks-node
88

99
RUN rustup component add llvm-tools-preview && \
1010
cargo install grcov

.github/actions/bitcoin-int-tests/Dockerfile.large-genesis

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN cargo test --no-run --workspace && \
2222
cargo build --workspace
2323

2424
ENV BITCOIND_TEST 1
25-
RUN cd testnet/stacks-node && cargo test --release --features prod-genesis-chainstate -- --test-threads 1 --ignored neon_integrations::bitcoind_integration_test
25+
RUN cd stacks-node && cargo test --release --features prod-genesis-chainstate -- --test-threads 1 --ignored neon_integrations::bitcoind_integration_test
2626

2727
RUN grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
2828

.gitignore

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,12 @@ secrets*
4141
# vim
4242
*.swp
4343

44-
#Docker
45-
Docker/blockstore.ini
46-
47-
#Docs
48-
api/templates/index.html
49-
api/data
50-
51-
# testnets
52-
testnet-logs/
53-
testnet.log
54-
testnet/index.html
55-
5644
# virtualenvs
5745
.venv
5846

5947
# will have compiled files and executables
60-
/target/
61-
/testnet/helium/target/
62-
/contrib/tools/puppet-chain/target/
63-
/contrib/core-contract-tests/.cache/
64-
/contrib/tools/config-docs-generator/target/
48+
target/
49+
contrib/tools/config-docs-generator/target/
6550

6651
# These are backup files generated by rustfmt
6752
**/*.rs.bk
@@ -71,7 +56,6 @@ tarpaulin-report.html
7156
osxcross
7257
osxcross*.tar.xz
7358
.DS_Store
74-
testnet/stacks-node/target
7559

7660
net-test/etc/*.toml
7761
net-test/etc/*.conf

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
77

88
## Unreleased
99

10+
- The HTTP `Date` header in responses now strictly follows RFC7231.
11+
1012
### Changed
1113

1214
- When a previous block commit is unable to be RBFed, the miner will now just wait for it to be confirmed instead of submitting a new block commit which breaks the miner's UTXO chain.

Cargo.lock

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

Cargo.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,34 @@ members = [
99
"libstackerdb",
1010
"libsigner",
1111
"stacks-signer",
12-
"testnet/stacks-node",
12+
"stacks-node",
1313
"contrib/tools/config-docs-generator"]
1414

1515
# Dependencies we want to keep the same between workspace members
1616
[workspace.dependencies]
17-
ed25519-dalek = { version = "2.1.1", features = ["serde", "rand_core"] }
17+
ed25519-dalek = { version = "2.1.1", default-features = false }
1818
hashbrown = { version = "0.15.2", features = ["serde"] }
19+
lazy_static = "1.4.0"
1920
rand_core = "0.6.4"
2021
rand = "0.8"
2122
rand_chacha = "0.3.1"
22-
tikv-jemallocator = "0.5.4"
23+
serde = "1"
24+
serde_derive = "1"
25+
serde_json = { version = "1.0", features = ["arbitrary_precision", "unbounded_depth"] }
26+
slog = { version = "2.5.2", features = [ "max_level_trace" ] }
2327
rusqlite = { version = "0.31.0", features = ["blob", "serde_json", "i128_blob", "bundled", "trace"] }
28+
tikv-jemallocator = "0.5.4"
2429
thiserror = "1.0.65"
2530
toml = "0.5.6"
2631

2732
# Use a bit more than default optimization for
28-
# dev builds to speed up test execution
33+
# dev builds to speed up test execution
2934
[profile.dev]
3035
opt-level = 1
3136

3237
# Use release-level optimization for dependencies
3338
# This slows down "first" builds on development environments,
34-
# but won't impact subsequent builds.
39+
# but won't impact subsequent builds.
3540
[profile.dev.package."*"]
3641
opt-level = 3
3742

contrib/nix/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
(craneLib.fileset.commonCargoSources ../../stacks-common)
111111
(craneLib.fileset.commonCargoSources ../../stackslib)
112112
(craneLib.fileset.commonCargoSources ../../stx-genesis)
113-
(craneLib.fileset.commonCargoSources ../../testnet/stacks-node)
113+
(craneLib.fileset.commonCargoSources ../../stacks-node)
114114
];
115115
};
116116

docs/mining.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ to verify that it was able to find its Bitcoin UTXOs:
4444

4545
```bash
4646
$ head -n 100 /path/to/your/node/logs | grep -i utxo
47-
INFO [1630127492.031042] [testnet/stacks-node/src/run_loop/neon.rs:146] [main] Miner node: checking UTXOs at address: <redacted>
48-
INFO [1630127492.062652] [testnet/stacks-node/src/run_loop/neon.rs:164] [main] UTXOs found - will run as a Miner node
47+
INFO [1630127492.031042] [stacks-node/src/run_loop/neon.rs:146] [main] Miner node: checking UTXOs at address: <redacted>
48+
INFO [1630127492.062652] [stacks-node/src/run_loop/neon.rs:164] [main] UTXOs found - will run as a Miner node
4949
```
5050

5151
## Configuring Cost and Fee Estimation

docs/profiling.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ Validating the config file using `stacks-node check-config`:
1717

1818
```
1919
$ cargo run -r -p stacks-node --bin stacks-node check-config --config ./sample/conf/mainnet-follower-conf.toml
20-
INFO [1661276562.220137] [testnet/stacks-node/src/main.rs:82] [main] stacks-node 0.1.0 (:, release build, linux [x86_64])
21-
INFO [1661276562.220363] [testnet/stacks-node/src/main.rs:115] [main] Loading config at path ./sample/conf/mainnet-follower-conf.toml
22-
INFO [1661276562.233071] [testnet/stacks-node/src/main.rs:128] [main] Valid config!
20+
INFO [1661276562.220137] [stacks-node/src/main.rs:82] [main] stacks-node 0.1.0 (:, release build, linux [x86_64])
21+
INFO [1661276562.220363] [stacks-node/src/main.rs:115] [main] Loading config at path ./sample/conf/mainnet-follower-conf.toml
22+
INFO [1661276562.233071] [stacks-node/src/main.rs:128] [main] Loaded config!
2323
```
2424

2525
Enabling debug logging using environment variable `STACKS_LOG_DEBUG=1`:
2626

2727
```
2828
$ STACKS_LOG_DEBUG=1 cargo run -r -p stacks-node --bin stacks-node check-config --config ./sample/conf/mainnet-follower-conf.toml
29-
INFO [1661276562.220137] [testnet/stacks-node/src/main.rs:82] [main] stacks-node 0.1.0 (tip-mine:c90476aa8a+, release build, macos [aarch64])
30-
INFO [1661276562.220363] [testnet/stacks-node/src/main.rs:115] [main] Loading config at path ./sample/conf/mainnet-follower-conf.toml
31-
DEBG [1661276562.222450] [testnet/stacks-node/src/main.rs:118] [main] Loaded config file: ConfigFile { burnchain: Some(BurnchainConfigFile { chain: Some("bitcoin"), burn_fee_cap: Some(1), mode: Some("mainnet"), commit_anchor_block_within: None, peer_host: Some("localhost"), peer_port: Some(8333), rpc_port: Some(8332), rpc_ssl: None, username: Some("btcuser"), password: Some("btcpass"), timeout: None, magic_bytes: None, local_mining_public_key: None, process_exit_at_block_height: None, poll_time_secs: None, satoshis_per_byte: None, leader_key_tx_estimated_size: None, block_commit_tx_estimated_size: None, rbf_fee_increment: None, max_rbf: None, epochs: None }), node: Some(NodeConfigFile { name: None, seed: None, deny_nodes: None, working_dir: Some("/Users/igor/w/stacks-work/working_dir"), rpc_bind: Some("0.0.0.0:20443"), p2p_bind: Some("0.0.0.0:20444"), p2p_address: None, data_url: None, bootstrap_node: Some("02196f005965cebe6ddc3901b7b1cc1aa7a88f305bb8c5893456b8f9a605923893@seed.mainnet.hiro.so:20444"), local_peer_seed: None, miner: Some(true), mock_mining: Some(true), mine_microblocks: None, microblock_frequency: None, max_microblocks: None, wait_time_for_microblocks: None, prometheus_bind: None, marf_cache_strategy: None, marf_defer_hashing: None, pox_sync_sample_secs: None, use_test_genesis_chainstate: None }), ustx_balance: None, events_observer: Some([EventObserverConfigFile { endpoint: "localhost:3700", events_keys: ["*"] }]), connection_options: None, fee_estimation: None, miner: None }
32-
INFO [1661276562.233071] [testnet/stacks-node/src/main.rs:128] [main] Valid config!
29+
INFO [1661276562.220137] [stacks-node/src/main.rs:82] [main] stacks-node 0.1.0 (tip-mine:c90476aa8a+, release build, macos [aarch64])
30+
INFO [1661276562.220363] [stacks-node/src/main.rs:115] [main] Loading config at path ./sample/conf/mainnet-follower-conf.toml
31+
DEBG [1661276562.222450] [stacks-node/src/main.rs:118] [main] Loaded config file: ConfigFile { burnchain: Some(BurnchainConfigFile { chain: Some("bitcoin"), burn_fee_cap: Some(1), mode: Some("mainnet"), commit_anchor_block_within: None, peer_host: Some("localhost"), peer_port: Some(8333), rpc_port: Some(8332), rpc_ssl: None, username: Some("btcuser"), password: Some("btcpass"), timeout: None, magic_bytes: None, local_mining_public_key: None, process_exit_at_block_height: None, poll_time_secs: None, satoshis_per_byte: None, leader_key_tx_estimated_size: None, block_commit_tx_estimated_size: None, rbf_fee_increment: None, max_rbf: None, epochs: None }), node: Some(NodeConfigFile { name: None, seed: None, deny_nodes: None, working_dir: Some("/Users/igor/w/stacks-work/working_dir"), rpc_bind: Some("0.0.0.0:20443"), p2p_bind: Some("0.0.0.0:20444"), p2p_address: None, data_url: None, bootstrap_node: Some("02196f005965cebe6ddc3901b7b1cc1aa7a88f305bb8c5893456b8f9a605923893@seed.mainnet.hiro.so:20444"), local_peer_seed: None, miner: Some(true), mock_mining: Some(true), mine_microblocks: None, microblock_frequency: None, max_microblocks: None, wait_time_for_microblocks: None, prometheus_bind: None, marf_cache_strategy: None, marf_defer_hashing: None, pox_sync_sample_secs: None, use_test_genesis_chainstate: None }), ustx_balance: None, events_observer: Some([EventObserverConfigFile { endpoint: "localhost:3700", events_keys: ["*"] }]), connection_options: None, fee_estimation: None, miner: None }
32+
INFO [1661276562.233071] [stacks-node/src/main.rs:128] [main] Loaded config!
3333
```
3434

3535
Enabling json logging using environment variable `STACKS_LOG_JSON=1` and feature flag `slog_json`:
3636

3737
```
3838
$ STACKS_LOG_JSON=1 cargo run -F slog_json -r -p stacks-node --bin stacks-node check-config --config ./sample/conf/mainnet-follower-conf.toml
39-
{"msg":"stacks-node 0.1.0 (tip-mine:c90476aa8a+, release build, macos [aarch64])","level":"INFO","ts":"2022-08-23T12:44:28.072462-05:00","thread":"main","line":82,"file":"testnet/stacks-node/src/main.rs"}
40-
{"msg":"Loading config at path ./sample/conf/mainnet-follower-conf.toml","level":"INFO","ts":"2022-08-23T12:44:28.074238-05:00","thread":"main","line":115,"file":"testnet/stacks-node/src/main.rs"}
41-
{"msg":"Valid config!","level":"INFO","ts":"2022-08-23T12:44:28.089960-05:00","thread":"main","line":128,"file":"testnet/stacks-node/src/main.rs"}
39+
{"msg":"stacks-node 0.1.0 (tip-mine:c90476aa8a+, release build, macos [aarch64])","level":"INFO","ts":"2022-08-23T12:44:28.072462-05:00","thread":"main","line":82,"file":"stacks-node/src/main.rs"}
40+
{"msg":"Loading config at path ./sample/conf/mainnet-follower-conf.toml","level":"INFO","ts":"2022-08-23T12:44:28.074238-05:00","thread":"main","line":115,"file":"stacks-node/src/main.rs"}
41+
{"msg":"Valid config!","level":"INFO","ts":"2022-08-23T12:44:28.089960-05:00","thread":"main","line":128,"file":"stacks-node/src/main.rs"}
4242
```
4343

4444
## Setting up the working directory

0 commit comments

Comments
 (0)