electrum icon indicating copy to clipboard operation
electrum copied to clipboard

The text in Description field is not correct

Open mkcisse opened this issue 5 years ago • 3 comments

I sent the following payments with 2 different Description fields: Capture d’écran de 2020-07-15 00-50-13 In History widget, the text in Description field is not correct. Capture d’écran de 2020-07-15 00-50-25 We should have: multisig payment multisig payment 2 instead of multisig payment 2 multisig payment 2

mkcisse avatar Jul 14 '20 22:07 mkcisse

instead of multisig payment 2 multisig payment 2

that's not what it says. it says multisig payment; multisig payment 2. i.e. it considers both transactions to relate to both invoices.

I don't think there is a bug here, but I cannot say for sure without knowing the addresses/amounts involved in the invoices and the transactions.

edit: in particular, if both invoices involve the same address, that can cause this.

SomberNight avatar Jul 14 '20 23:07 SomberNight

I have the same problem with duplicated descriptions from recent transactions

alexeyda avatar Aug 06 '21 16:08 alexeyda

This can indeed result in annoying behaviour... :/

E.g. imagine a user paying your accountant, on-chain, once a month. Let's say the accountant gives to the user bip21 URIs including a description with e.g. the month/year mentioned, but the bitcoin address is always reused. The current behaviour is that the History tab, for the user, will show labels for each of these txs that are a concatenation of all the descriptions. The accountant reusing addresses is outside the control of the user.

This is because the default label for a txid is a concatenation of all relevant invoice labels (where relevant simply means the tx touches the address). Instead, we could have some kind of stateful mapping between txs and invoices, keeping track which tx was already counted towards satisfying which invoice.

SomberNight avatar Aug 09 '22 15:08 SomberNight