Skip to content

Commit a5c95be

Browse files
ZocoLiniclaude
andcommitted
test(dash-spv): cover spending mempool change and unconfirmed incoming UTXOs
Adds two regression tests in `tests/dashd_sync/tests_transaction_builder.rs` that drive `ManagedWalletInfo::build_and_sign_transaction` end-to-end against a real dashd regtest node, broadcasting via the SPV client. Both tests use a fresh-mnemonic wallet (EMPTY/SECONDARY) so the SPV side has no preexisting confirmed UTXOs from the test chain that would mask the bug. - test_spend_unconfirmed_change_balance: confirms the wallet reports trusted mempool change as spendable, then fails to actually spend it through coin selection (the filter ignores `is_trusted`). - test_spend_unconfirmed_incoming_balance: confirms the wallet reports unconfirmed incoming as spendable, then fails to spend it. Both tests are red against the current coin selector and document the user- reported symptom ("balance shows up but cannot be spent"). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6e48993 commit a5c95be

2 files changed

Lines changed: 411 additions & 0 deletions

File tree

dash-spv/tests/dashd_sync/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ mod tests_mempool;
1010
mod tests_multi_wallet;
1111
mod tests_restart;
1212
mod tests_transaction;
13+
mod tests_transaction_builder;

0 commit comments

Comments
 (0)