Onchain bdk#1870
Conversation
ca08cae to
bdc06cf
Compare
3a49397 to
caf4bec
Compare
73b5d6f to
514296e
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1870 +/- ##
==========================================
+ Coverage 65.16% 66.29% +1.12%
==========================================
Files 330 353 +23
Lines 56742 64375 +7633
==========================================
+ Hits 36976 42675 +5699
- Misses 19766 21700 +1934 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e0652b5 to
511c1c3
Compare
511c1c3 to
c8829f8
Compare
19c59db to
6a656d2
Compare
|
I tried to run regtest mode on this branch and i got an error:
|
TheMhv
left a comment
There was a problem hiding this comment.
Need to add BDK mnemonic env var to run regtest mode
| export CDK_MINTD_LOGGING_FILE_LEVEL="debug" | ||
| export RUST_BACKTRACE=1 | ||
| export CDK_MINTD_DATABASE="$CDK_MINTD_DATABASE" | ||
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" |
There was a problem hiding this comment.
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" | |
| export CDK_MINTD_BDK_MNEMONIC="eye survey guilt napkin crystal cup whisper salt luggage manage unveil loyal" | |
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" |
| export CDK_MINTD_LOGGING_FILE_LEVEL="debug" | ||
| export RUST_BACKTRACE=1 | ||
| export CDK_MINTD_DATABASE="$CDK_MINTD_DATABASE" | ||
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" |
There was a problem hiding this comment.
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" | |
| export CDK_MINTD_BDK_MNEMONIC="cattle gold bind busy sound reduce tone addict baby spend february strategy" | |
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" |
| export CDK_MINTD_MNEMONIC="abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" | ||
| export RUST_BACKTRACE=1 | ||
| export CDK_MINTD_DATABASE="$CDK_MINTD_DATABASE" | ||
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" |
There was a problem hiding this comment.
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" | |
| export CDK_MINTD_BDK_MNEMONIC="abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" | |
| export CDK_MINTD_ONCHAIN_BACKEND="bdk" |
|
closes #1803 |
8b23986 to
78eff9f
Compare
|
Can we get a "fakeonchain" backend that credits |
|
There might be an issue / race with the mutinynet test mint...? Quote ID: 7c6dbf96-b28e-4b22-a234-98bbcd60cb24 Possibly a race between quote creation and the address watcher subscribing? |
|
Some inconsistencies I've found in my testing of onchain so far:
|
This due to cdk-bdk ignoring utxo's less then 1000 sats by default to avoid dust attacks. What is the issue is in the mint info shows this isn't shown correctly. |
Ah that explains it... yes, the mintinfo is wrong in the test mint - it says Assuming Mint will error and reject a melt quote creation request outside the advertised min/max range (once corrected)? |
This is corrected on the test mint now. And yes melt quotes outside the limits will be rejected, mint quotes do not have an amount so we cannot. |
- Pass optional onchain config through create_fake_wallet_settings() - Add onchain: None field to Settings struct literals in regtest mint setup
Adds robust handling for failed send intents in cdk-bdk, including tombstone records and the ability to retry failed intents with the same quote ID. Enhances signed batch recovery to repair or safely abort when recovering pending members.
Introduces `BroadcastOutcome` and `BroadcastFailure` to the chain source interface to distinguish between transient network issues, deterministic rejections, and already-known transactions. Applies this classification to both esplora and bitcoin_rpc backends, improving the robustness of batch rebroadcasting and recovery.
Description
closes: #1803
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing