|
Ran
|
Jobs
1
|
Files
5
|
Run time
4min
|
Badge
README BADGES
|
push
github
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
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 14 |
0.0 |
src/persister.rs | |
| 35 |
3.85 |
-0.17% | src/handlers.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 17231813091.1 | 5 |
2.83 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|