Skip to content

Commit bf4a577

Browse files
author
Aaron Blankstein
authored
Merge pull request #2601 from blockstack/develop
Release 2.0.11.0.0
2 parents f9e91d9 + dbfbe63 commit bf4a577

File tree

118 files changed

+29282
-2952
lines changed

Some content is hidden

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

118 files changed

+29282
-2952
lines changed

.cargo/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[alias]
2-
testnet = "run --package stacks-node --"
2+
stacks-node = "run --package stacks-node --"
33
puppet-chain = "run --package puppet-chain --"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/
1414
ENV BITCOIND_TEST 1
1515
WORKDIR /src/testnet/stacks-node
1616
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_integration_test
17+
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_stress_integration_test

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::bitcoind_
2424
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::pox_integration_test
2525
RUN cargo test -- --test-threads 1 --ignored tests::bitcoin_regtest::bitcoind_integration_test
2626
RUN cargo test -- --test-threads 1 --ignored tests::should_succeed_handling_malformed_and_valid_txs
27+
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_microblocks_integration_test
28+
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_stream_microblocks_integration_test
29+
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_invalid_stream_microblocks_integration_test
30+
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::runtime_overflow_unconfirmed_microblocks_integration_test
31+
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::antientropy_integration_test
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:lts-alpine as build
2+
3+
WORKDIR /src
4+
5+
COPY . .
6+
7+
RUN npx [email protected] bundle -o /build/open-api-docs.html ./docs/rpc/openapi.yaml
8+
9+
FROM scratch AS export-stage
10+
COPY --from=build /build/open-api-docs.html /

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .
1818
atlas-test:
1919
# disable this job/test for now, as the atlas endpoints are currently disabled.
20-
if: ${{ false }}
20+
if: ${{ true }}
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v2

.github/workflows/stacks-blockchain.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ jobs:
5151
DOCKER_BUILDKIT: 1
5252
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.code-cov .
5353

54+
open-api-validation:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v2
58+
- name: Run units tests (with coverage)
59+
env:
60+
DOCKER_BUILDKIT: 1
61+
run: docker build -o dist/ -f .github/actions/open-api/Dockerfile.open-api-validate .
62+
- name: Upload bundled html
63+
uses: actions/upload-artifact@v2
64+
with:
65+
name: open-api-bundle
66+
path: |
67+
dist
5468
# Run net-tests
5569
nettest:
5670
# disable this job/test for now, since we haven't seen this pass

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,41 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the versioning scheme outlined in the [README.md](README.md).
77

8+
## [2.0.11.0.0]
9+
10+
The chainstate directory has been restructured in this release. It is not
11+
compatible with prior chainstate directories.
12+
13+
## Added
14+
15+
- `/drop_mempool_tx` endpoint to notify event observers when a mempool
16+
transaction has been removed the mempool.
17+
- `"reward_slot_holders"` field to the `new_burn_block` event
18+
- CTRL-C handler for safe shutdown of `stacks-node`
19+
- Log transactions in local db table via setting env `STACKS_TRANSACTION_LOG=1`
20+
- New prometheus metrics for mempool transaction processing times and
21+
outstanding mempool transactions
22+
- New RPC endpoint with path `/v2/traits/contractAddr/contractName/traitContractName
23+
/traitContractAddr/traitName` to determine whether a given trait is implemented
24+
within the specified contract (either explicitly or implicitly).
25+
- Re-activate the Atlas network for propagating and storing transaction
26+
attachments. This re-enables off-chain BNS name storage.
27+
- Re-activate microblock mining.
28+
29+
## Changed
30+
31+
- Improved chainstate directory layout
32+
- Improved node boot up time
33+
- Better handling of flash blocks
34+
- The `/v2/pox` RPC endpoint was updated to include more useful
35+
information about the current and next PoX cycles. For details, see
36+
`docs/rpc-endpoints.md`
37+
38+
## Fixed
39+
40+
- Fixed faulty logic in the mempool that was still treating the transaction fee
41+
as a fee rate, which prevented replace-by-fee from working as expected.
42+
843
## [2.0.10.0.1]
944

1045
This is a low-priority hotfix release to address a bug in the deserialization logic. The
@@ -58,6 +93,7 @@ valid block data if its descendant microblock stream is invalid for some reason.
5893

5994
- Do not delete a valid parent Stacks block.
6095

96+
6197
## [2.0.6] - 2021-02-15
6298

6399
The database schema has not changed since 2.0.5, so when spinning up a

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ stx_genesis = { package = "stx-genesis", path = "./stx-genesis/."}
100100
default = ["developer-mode"]
101101
developer-mode = []
102102
monitoring_prom = ["prometheus"]
103-
tx_log = []
104103
slog_json = ["slog-json"]
105104

106105

benches/block_limits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ fn setup_chain_state(scaling: u32) -> MarfedKV {
194194
};
195195

196196
fs::copy(
197-
&format!("{}/marf", pre_initialized_path),
198-
&format!("{}/marf", out_path),
197+
&format!("{}/marf.sqlite", pre_initialized_path),
198+
&format!("{}/marf.sqlite", out_path),
199199
)
200200
.unwrap();
201201
return MarfedKV::open(out_path, None).unwrap();

0 commit comments

Comments
 (0)