test(bitcoind_rpc): add regtest coverage for filter_iter example - #2329
Open
visawestern wants to merge 1 commit into
Open
visawestern wants to merge 1 commit into
visawestern wants to merge 1 commit into
Conversation
Run the filter_iter example path in CI against a regtest node via TestEnv with compact block filters enabled. Matures coinbase (101 blocks), funds a watched regtest address with Amount::from_sat, checks unconfirmed/confirmed balances with typed asserts, then drives FilterIter from genesis and asserts only the funding height matches. Closes bitcoindevkit#1618.
visawestern
requested review from
evanlinjin and
oleonardolima
as code owners
September 29, 2026 11:58
1 of 2 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Runs the
filter_iterexample path in CI against a regtest node.What:
crates/bitcoind_rpc/tests/test_example_regtest.rs: TestEnv with-blockfilterindex=1 -peerblockfilters=1, matures coinbase with 101 blocks, funds a watched regtest address withAmount::from_sat(5_000_000), checks unconfirmed (minconf 0) / confirmed (minconf 1) balances with typed asserts, then drivesFilterIterfrom genesis and asserts only the funding height matches.crates/bitcoind_rpc/Cargo.toml:bdk_testenvwith explicitfeatures = ["download"]so the bitcoind binary is available in CI..github/workflows/cont_integration.yml: newregtest-bitcoind-rpc-examplejob (cargo test --all-features --test test_example_regtest).Tests:
cargo test -p bdk_bitcoind_rpc --all-features --test test_example_regtest— 1 passedcargo test -p bdk_bitcoind_rpc --all-features --test test_filter_iter— 4 passedcargo fmt --all -- --check— passcargo clippy -p bdk_bitcoind_rpc --all-targets --all-features -- -D warnings— passCloses #1618.