Bitcoin Forum
May 25, 2024, 07:28:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getaccountaddress (why does it often create a new address for the account?)  (Read 3535 times)
djpnewton (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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?
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5208
Merit: 13013


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 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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: 5208
Merit: 13013


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

It improves the anonymity of both you and the sender.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
djpnewton (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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

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

Activity: 181
Merit: 100



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

<OPEN MONEY | Powering Blockchain Acceptance [ICO]
███████████████    ▬▬▬▬▬▬ Blockchain Meets Mainstream! ▬▬▬▬▬▬    ███████████████
Whitepaper  ●  Slack  ●  Facebook  ●  Twitter  ●  Reddit  ●  Telegram>
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5208
Merit: 13013


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!