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

bitcoindevkit / bdk-cli / 17231813091
8%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2025 07:59AM UTC
Jobs 1
Files 5
Run time 4min
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 Aug 2025 07:57AM UTC coverage: 2.831% (-0.1%) from 2.969%
17231813091

push

github

tvpeter
Merge bitcoindevkit/bdk-cli#206: feat: add redb as an alternative to sqlite

83e6dd6e9 refactor: add docs,version and change visibility (codingp110)
7bcbcf05d feat: add redb as an alternative to sqlite (codingp110)

Pull request description:

  <!-- You can erase any parts of this template not applicable to your Pull Request. -->

  ### Description
  We currently only support `sqlite` persistence. This PR adds an alternative `redb` persistence by leveraging Summer Of Bitcoin work on [`bdk_redb`](https://github.com/110CodingP/bdk_redb).
  <!-- Describe the purpose of this PR, what's being adding and/or fixed -->

  ### Notes to the reviewers
  The CI does not pass since `bdk_redb` has a MSRV of 1.85.0 which is in turn due to `redb`. Also `bdk_redb` is yet to published as a crate so currently we use the GitHub version of the same.

  The following script tests a simple scenario of creating a wallet with bitcoind-rpc as chain source , sending funds to an address controlled by the wallet and creating a transaction using the wallet:
  ```
  rm -rf ~/.bitcoin/regtest
  rm -rf ~/.bdk-bitcoin

  bitcoin-cli -rpcuser=alice -rpcpassword=password createwallet alice

  export NETWORK=regtest

  export EXT_DESCRIPTOR=$(bitcoin-cli -rpcwallet=alice -rpcuser=alice -rpcpassword=password listdescriptors true | jq -r '.descriptors | .[0] | .desc')

  export INT_DESCRIPTOR=$(bitcoin-cli -rpcwallet=alice -rpcuser=alice -rpcpassword=password listdescriptors true | jq -r '.descriptors | .[1] | .desc')

  export DATABASE_TYPE=redb
  export CLIENT_TYPE=rpc
  export SERVER_URL=127.0.0.1:18443

  addr=$(bdk-cli wallet -w alice -a alice:password new_address | jq -r '.address')

  bitcoin-cli -rpcuser=alice -rpcpassword=password -rpcwallet=alice generatetoaddress 102 $addr

  bdk-cli wallet -w alice -a alice:password full_scan
  bdk-cli wallet -w alice -a alice:password balance

  recipient=$(bitcoin-cli  -rpcwallet=a... (continued)

0 of 49 new or added lines in 2 files covered. (0.0%)

25 of 883 relevant lines covered (2.83%)

0.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
14
0.0
src/persister.rs
35
3.85
-0.17% src/handlers.rs
Jobs
ID Job ID Ran Files Coverage
1 17231813091.1 26 Aug 2025 07:59AM UTC 5
2.83
GitHub Action Run
Source Files on build 17231813091
  • Tree
  • List 5
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17231813091
  • 67011b37 on github
  • Prev Build on master (#17216365664)
  • Next Build on master (#17246648439)
  • Delete
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

© 2025 Coveralls, Inc