spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.39k stars 3.08k forks source link

`use_change` setting is confusing #8769

Open accumulator opened 9 months ago

accumulator commented 9 months ago

disabling 'use change addresses' in confirm_tx_dialog still uses change addresses

  1. create tx with a change output
  2. observe one output is from change addresses
  3. toggle option 'use change addresses' to off
  4. observe one output is still from change addresses
SomberNight commented 9 months ago

toggle option 'use change addresses' to off

The change needs to be sent somewhere. If you turn the setting off, it will reuse one of the "from addresses" and send it there. So if that address happens to be a change address, then the change will be sent to a change address. Does this match what you observed?

accumulator commented 9 months ago

Well, I expected receive/external addresses to be used instead of change/internal addresses. But what you describe makes sense too.

SomberNight commented 9 months ago

Yeah, well, the whole "use_change" setting is a questionable weird thing.

also see https://github.com/spesmilo/electrum/issues/5353