Closed evanlinjin closed 1 month ago
New discovery: The cli saw it as confirmed after I called scan
after one additional confirmation.
Re-opening as #1145 didn't fix this
May be fixed by this: https://github.com/bitcoindevkit/bdk/issues/1354
Move to beta milestone to re-test.
Because bdk_electrum
has already been re-architectured so that chain updates and anchor updates are fetched orthogonal to each other, I don't think this bug can occur any longer...
However let's have tests to make sure previously unconfirmed transactions get confirmed again in both reorg and no-reorg situations.
I'll take a look at this.
Describe the bug
Calling
example_electrum sync
on an unconfirmed tx may result in the tx being stuck as unconfirmed eternally (according to the cli)).To Reproduce
example_electrum send 123456 <insert-address-here>
.example_electrum sync
until the transaction is confirmed (according to the block explorer).example_electrum balance
-> You'll see that the transaction is not confirmed (according to our cli).example_electrum scan && example_electrum balance
-> The transaction is still NOT confirmed!The transaction is forever stuck as unconfirmed according to our cli.
Expected behavior
That the tx is viewed as confirmed by our cli.