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

bitcoindevkit / bdk-sp / 26098264887
26%

Build:
DEFAULT BRANCH: master
Ran 19 May 2026 12:52PM UTC
Jobs 1
Files 23
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

19 May 2026 12:49PM UTC coverage: 26.483% (-0.04%) from 26.522%
26098264887

push

github

nymius
Merge bitcoindevkit/bdk-sp#60: fix: scan-rpc ignores wallet birthday

d815fe617 fix(cli2): log start point at scan-rpc begin (GuiSchet)
1366db738 fix(cliv2): scan-rpc ignores wallet birthday (GuiSchet)

Pull request description:

  ### Description

  Closes #59.

  `scan-rpc` was constructing the `bdk_bitcoind_rpc::Emitter` with `start_height = 0`, so every invocation began emitting blocks from genesis and crawled the entire chain history regardless of the wallet's `birthday`.

  This change mirrors the logic that `scan-cbf` already implements.

  ### Notes to the reviewers

  No tests were added: there are no existing tests under `cli/v2/` and `just check` / `just test` are both configured to exclude `bdk_sp_cli_v2`.

  ### Execution trace

  Demo setup on signet:

  | | |
  |--|--|
  | chain tip height | `304930` |
  | wallet birthday height | `299930` (= tip − 5000) |
  | wallet birthday hash | `000000123dfc5a243bbdaca90dad2ce9b` |

  For each run a fresh DB was used (`sp-cli2 create --network signet --birthday-height 299930 --birthday-hash <hash>`), then `sp-cli2 scan-rpc` against a fully-synced local bitcoind. The CLI's existing periodic print reports `synced to <hash> @ <height>` — the `<height>` column is what tells us where the emitter is actually iterating.

  #### Before (`master`, `start_height = 0`)

  ```
  [  6.000065s] synced to 0000003844272e5d3b8b9c674a039e0a0 @ 11227 | total: 0 BTC
  [ 12.000166s] synced to 000000a332309572d95971b9f11d6aa43 @ 23166 | total: 0 BTC
  [ 18.000744s] synced to 000001181687ff908060ecf819fb93ddc @ 31798 | total: 0 BTC
  [ 24.016146s] synced to 000000159185041936b7f690348da32e8 @ 32513 | total: 0 BTC
  [ 30.038584s] synced to 00000116b95d06c1aad83247cdfb45034 @ 332... (continued)

74 of 94 branches covered (78.72%)

Branch coverage included in aggregate %.

0 of 5 new or added lines in 1 file covered. (0.0%)

819 of 3278 relevant lines covered (24.98%)

10.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
0.0
0.0% cli/v2/src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 26098264887.1 19 May 2026 12:52PM UTC 23
26.48
GitHub Action Run
Source Files on build 26098264887
  • Tree
  • List 23
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • be43061d on github
  • Prev Build on master (#26054950618)
  • Next Build on master (#26225300708)
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