-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use fee rate estimation in block assembly #2859
Merged
Merged
Changes from 21 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c1042cc
feat: add estimate evaluation and nonce tracking to mempool iteration
kantai d5d94cf
chore: integrate into neon_node. requires Box<dyn ..>
kantai 81a5afe
apply schema changes if necessary
kantai 0472031
various fixes to the iteration
kantai 077c97c
Merge branch 'feat/cost-estimator' into feat/miner-rate-eval
kantai 2cb74b9
Merge remote-tracking branch 'origin/feat/cost-estimator' into feat/m…
kantai 69f630c
fix mempool test
kantai efbcb47
Merge remote-tracking branch 'origin/feat/cost-estimator' into feat/m…
kantai 896b9cc
fix mempool test
kantai bc1ef55
fix neon_integrations tests
kantai ade8353
refactor the configuration logic
kantai 5366806
calculate estimate on mempool admission
kantai 14dcd49
fix mempool integration test
kantai 497851f
use Send bound on trait for http server tests
kantai b9531b7
enum renaming, add mempool db schema version
kantai b960b27
enable WAL mode in estimator DBs, add TestPeer testing for block asse…
kantai 92dd070
update test, try using matrix for parallel testing
kantai c59290f
test: use job matrix execution for bitcoin integration tests
kantai a407985
chore: attempt to fix mining fairness test in GH action
kantai 6b14999
fix metric returning zero while dimensions near zero, add test case
kantai 58b0358
chore: update "mined anchored" log line to k-v + added total tx fee
kantai 903fdda
address PR feedback
kantai cc3ba50
oops, tx_consider_no_estimate should return that the estimate must be…
kantai 36deacb
test: fix ports in new test case, backport atlas test updates from ot…
kantai 3a55306
remember `start_with_no_estimate` value if only updated nonces
kantai 304247c
Merge branch 'develop' into feat/miner-rate-eval
kantai aa290e2
Merge branch 'develop' into feat/miner-rate-eval
kantai ee201e8
chore: update comment in gh action
kantai 6005207
chore: add changelog entry, change config variable name
kantai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
37 changes: 4 additions & 33 deletions
37
.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
FROM rust:bullseye | ||
|
||
WORKDIR /src/ | ||
|
||
COPY . . | ||
|
||
WORKDIR /src/testnet/stacks-node | ||
RUN cargo test --no-run | ||
|
||
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
|
||
RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/ | ||
FROM stacks-node:integrations | ||
|
||
ARG test_name | ||
ENV BITCOIND_TEST 1 | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::microblock_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_check_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::cost_voting_integration | ||
RUN cargo test -- --test-threads 1 --ignored tests::integrations::integration_test_get_info | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::bitcoind_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::liquid_ustx_integration | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::stx_transfer_btc_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::bitcoind_forking_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::should_fix_2771 | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::pox_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::bitcoin_regtest::bitcoind_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::should_succeed_handling_malformed_and_valid_txs | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_stream_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_invalid_stream_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::runtime_overflow_unconfirmed_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::antientropy_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::filter_low_fee_tx_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::filter_long_runtime_tx_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::mining_transactions_is_fair | ||
|
||
RUN cargo test -- --test-threads 1 --ignored "$test_name" | ||
|
15 changes: 15 additions & 0 deletions
15
.github/actions/bitcoin-int-tests/Dockerfile.generic.bitcoin-tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM rust:bullseye | ||
|
||
WORKDIR /src/ | ||
|
||
COPY . . | ||
|
||
WORKDIR /src/testnet/stacks-node | ||
RUN cargo test --no-run | ||
|
||
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
|
||
RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/ | ||
|
||
ENV BITCOIND_TEST 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 903fdda