dcrdex icon indicating copy to clipboard operation
dcrdex copied to clipboard

BTC send tx dust handling and strange value formatting

Open peterzen opened this issue 1 year ago • 4 comments

Getting the below log message and UI when trying to send a small amount on testnet, ~ 0.000018 BTC. The transaction should probably have been rejected as being dust (I'm not sure what the threshold is). Although the log says the send was successful, it doesn't seem to have been broadcast. Also, the rendering of the amount in the TxHistory UI isn't correct.

2024-01-19 13:11:43.573 [INF] CORE: notify: |SUCCESS| (send) Send successful - Sending 184467440737.09533691 btc to tb1qt0lenzqp8ay0ryehj7m3wwuds240mzhgdhqp4c has completed successfully. Tx ID = 3610b1811a890966b9af3dfe322fe246c67e40b164f3660eb493538c1b0d26b6:0

Strange amount value formatting in txhistory UI:

image

image

peterzen avatar Jan 19 '24 13:01 peterzen

@peterzen Was the transaction eventually removed from the history?

martonp avatar Feb 01 '24 14:02 martonp

No, it stayed there indefinitely.

peterzen avatar Feb 01 '24 14:02 peterzen

If you open it back up now, it's still there? It should be deleting pending transactions if the wallet does not now about them.

It seems like when you sent, the inputs were less than the outputs. This is why there was an integer underflow. I'm unable to reproduce this.

martonp avatar Feb 01 '24 15:02 martonp

I've nuked the wallet since then. I'll try to reproduce it.

This happened on testnet - had an incoming tx (~0.0001) from a faucet and then sent it on choosing the max amount and subtract fees.

peterzen avatar Feb 01 '24 20:02 peterzen