• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk / 16539295771
79%

Build:
DEFAULT BRANCH: master
Ran 26 Jul 2025 11:25AM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jul 2025 10:47AM UTC coverage: 82.12% (-0.02%) from 82.142%
16539295771

push

github

evanlinjin
Merge bitcoindevkit/bdk#1988: Detect new mempool txs

51ee99a39 docs(bitcoind_rpc): fixed typo in docs (Wei Chen)
73ab1eb06 chore(bitcoind_rpc): Make clippy happy (志宇)
7e894f464 feat(bitcoind_rpc)!: Use `getrawmempool` without verbose (志宇)
05464ecf8 fix(bitcoind_rpc)!: Simplify emitter (志宇)
67dfb0b14 test(bitcoind_rpc): Detect new mempool txs (志宇)

Pull request description:

  ### Description

  There is a bug in `bdk_bitcoind_rpc` where some new mempool transactions will not be emitted at all.

  This problem exists because the avoid-re-emission logic depends on rounded-to-nearest-second timestamps.

  The fix is to just emit all mempool transactions but wrap them in `Arc`s so that emission becomes cheap.

  **Background:** I tried using `bdk_bitcoind_rpc` as the chain-source to write an example to showcase the [`IntentTracker`](https://github.com/bitcoindevkit/bdk_wallet/pull/257). However, `bdk_bitcoind_rpc` failed to emit some mempool transactions.

  ### Notes to the reviewers

  The test added in c22c68f fails without these fixes.

  Some tests are removed as they are no longer relevant.

  ### Changelog notice

  ```md
  Fixed:
  - Some mempool transactions not being emitted at all. The fix is to replace the avoid-re-emission-logic with one which emits all mempool transactions.
  ```

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo +nightly fmt` and `cargo clippy` before committing

  #### Bugfixes:

  * [x] This pull request breaks the existing API
  * [x] I've added tests to reproduce the issue which are now passing
  ~* [ ] I'm linking the issue being fixed by this PR~

ACKs for top commit:
  nymius:
    cACK 51ee99a39fbf9a6dc... (continued)

63 of 65 new or added lines in 1 file covered. (96.92%)

1 existing line in 1 file now uncovered.

5337 of 6499 relevant lines covered (82.12%)

33155.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
85.05
-0.54% crates/bitcoind_rpc/src/lib.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.05
-0.54% crates/bitcoind_rpc/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
1 16539295771.1 26 Jul 2025 11:25AM UTC 30
82.12
GitHub Action Run
Source Files on build 16539295771
  • Tree
  • List 30
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a48c97a1 on github
  • Prev Build on master (#16533160029)
  • Next Build on master (#16604829881)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc