Bitcoin Forum
December 08, 2016, 04:35:49 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: getaccountaddress (why does it often create a new address for the account?)  (Read 3008 times)
djpnewton
Newbie
*
Offline Offline

Activity: 16


View Profile
August 30, 2011, 03:35:38 AM
 #1

I understand the command creates a new address if the account does not previously exist but it seems to randomly create a new address even if the account has addresses already.

Also I have one account where the result from 'getaccountaddress' is not in the list returned by 'getaddressesfromaccount'.. has anyone seen this before?
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481214949
Hero Member
*
Offline Offline

Posts: 1481214949

View Profile Personal Message (Offline)

Ignore
1481214949
Reply with quote  #2

1481214949
Report to moderator
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2506


View Profile
August 30, 2011, 03:37:38 AM
 #2

It returns a new address whenever the old address has a non-zero balance. This is intentional.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
djpnewton
Newbie
*
Offline Offline

Activity: 16


View Profile
August 30, 2011, 06:06:39 AM
 #3

Ok, I see that it is documented here https://en.bitcoin.it/wiki/Accounts_explained#Accounts_and_Receiving_Addresses

Do you know what the rationale is?
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2506


View Profile
August 30, 2011, 06:11:13 AM
 #4

It improves the anonymity of both you and the sender.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
djpnewton
Newbie
*
Offline Offline

Activity: 16


View Profile
August 30, 2011, 07:18:07 AM
 #5

ok.. thank-you
Sekioh
Full Member
***
Offline Offline

Activity: 163


FirstBits: 1sekioh


View Profile
September 08, 2011, 12:39:11 PM
 #6

There's also a difference of that it's not creating a new address as much as it is revealing it. I believe I read that it automatically allocates a block of like 100 addresses into your wallet when creating it?

In any case, I have only like 8 addresses listed because I do a few transactions on the old ones and it doesn't make new ones unless that newest one gets anything sent to it. I have one for mining, one for personal, one for bonuses, one for donations, and a few for other uses, and pools only use the mining one, so most payments are in categories like that, doesn't touch new addresses ever for me. Grin
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2506


View Profile
September 08, 2011, 07:47:13 PM
 #7

There's also a difference of that it's not creating a new address as much as it is revealing it. I believe I read that it automatically allocates a block of like 100 addresses into your wallet when creating it?

Everything draws from the keypool, not just getaccountaddress.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!