Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Mabsark on January 17, 2015, 04:32:39 PM



Title: A quick question about change addresses.
Post by: Mabsark on January 17, 2015, 04:32:39 PM
Are change addresses always the last output in a transaction?


Title: Re: A quick question about change addresses.
Post by: DeathAndTaxes on January 17, 2015, 04:33:40 PM
Are change addresses always the last output in a transaction?

No.  They are a randomly ordered output.   There was a bug in earlier version of the client which made determining which address was the change possible but that is no longer the case.


Title: Re: A quick question about change addresses.
Post by: bloodDiamond on January 20, 2015, 11:03:49 AM
Are change addresses always the last output in a transaction?

No.  They are a randomly ordered output.   There was a bug in earlier version of the client which made determining which address was the change possible but that is no longer the case.

do you mean wallet-QT 10???
the latest wallet-QT???

thanks!


Title: Re: A quick question about change addresses.
Post by: DeathAndTaxes on January 20, 2015, 07:01:02 PM
do you mean wallet-QT 10???
the latest wallet-QT???

No a very old (can't remember which one you can check all the github commits and release notes) version of the client always made the change address last but it hasn't been that way for a very long time.


Title: Re: A quick question about change addresses.
Post by: grau on January 24, 2015, 02:19:11 PM
do you mean wallet-QT 10???
the latest wallet-QT???

No a very old (can't remember which one you can check all the github commits and release notes) version of the client always made the change address last but it hasn't been that way for a very long time.

Depends on your time scale if it's old, it was unfortunatelly true before 0.8.0.  This was the fix for it:

https://github.com/bitcoin/bitcoin/commit/ac7b8ea0864e925b0f5cf487be9acdf4a5d0c487


Title: Re: A quick question about change addresses.
Post by: ahmi on January 28, 2015, 10:31:17 AM
Can we change address with new one!!