Bitcoin Forum
May 25, 2017, 07:15:50 AM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: getaccountaddress (why does it often create a new address for the account?)  (Read 3094 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?
1495696550
Hero Member
*
Offline Offline

Posts: 1495696550

View Profile Personal Message (Offline)

Ignore
1495696550
Reply with quote  #2

1495696550
Report to moderator
POLONIEX TRADING SIGNALS
+50% Profit and more via TELEGRAM
ALTCOINTRADER.CO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1495696550
Hero Member
*
Offline Offline

Posts: 1495696550

View Profile Personal Message (Offline)

Ignore
1495696550
Reply with quote  #2

1495696550
Report to moderator
1495696550
Hero Member
*
Offline Offline

Posts: 1495696550

View Profile Personal Message (Offline)

Ignore
1495696550
Reply with quote  #2

1495696550
Report to moderator
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2660


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: 2660


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: 2660


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!