Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: fizgig on March 10, 2011, 04:31:19 AM



Title: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: fizgig on March 10, 2011, 04:31:19 AM
If I type this command into the bitcoind program in linux: 

Code:
./bitcoind listreceivedbyaddress 0 true

...I'm shown four addresses.  Three are called "Your Address" and one is "".  I'm not sure where they all came from and see no way to delete three of them to clean things up a bit.  I also don't see any way of marking one of them the primary account that will receive generated bitcoins.

Anyone know what's up?


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: theymos on March 10, 2011, 05:51:33 AM
The generated coins go to a newly-generated address. The generation won't be viewable with listtransactions, and the address won't be listed in listreceivedbyaddress. The generation will only be reflected in your balance.


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: fizgig on March 11, 2011, 07:22:10 PM
What's odd is that I have the four accounts I mentioned and all but one of them have a zero balance.  The one that does have a balance shows an amount of 0.130000.

When I do a getinfo command, I only show a balance of 0.070000.

Why would this be?


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: theymos on March 11, 2011, 08:33:08 PM
Probably you didn't use "sendfrom" when sending, so the balance of the account wasn't reduced.


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: fizgig on March 11, 2011, 09:09:30 PM
But I didn't send anything.  I received something so that the account has a balance now of 0.13 yet getinfo says I have a balance of 0.07.  Where did 0.07 come from?  Should getinfo return the sum of all balances of all accounts?  If so, it should say 0.13 shouldn't it?


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: theymos on March 11, 2011, 10:00:24 PM
Maybe it's a bug. Getinfo should return your actual balance. Can you send the full 0.13? What's the address you received on?


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: fizgig on March 12, 2011, 04:24:28 PM
The received address is 1Ngza4VjJ38w8f1GWdK36rk7AdpNSBTJ78

"getinfo" now shows a 0.10 balance.

"listreceivedbyaddress 0 true" shows 0.16 for the above address.  I'll try sending from that address in a bit.


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: theymos on March 12, 2011, 06:08:35 PM
You have sent bitcoins:
http://blockexplorer.com/address/1Ngza4VjJ38w8f1GWdK36rk7AdpNSBTJ78

Because you didn't use "sendfrom", the sent amount wasn't deducted from the account balance.


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: Stephen Gornick on March 13, 2011, 09:50:22 AM
The generated coins go to a newly-generated address.

Quote
The keypool IS used for coin-generation transactions.
  http://bitcointalk.org/index.php?topic=1869.msg23306#msg23306


Title: Re: Which address will my bitcoind client pay 50BTC to if it happens to win?
Post by: theymos on March 13, 2011, 10:21:59 AM
The generated coins go to a newly-generated address.

Quote
The keypool IS used for coin-generation transactions.
  http://bitcointalk.org/index.php?topic=1869.msg23306#msg23306

That's not at all relevant to the issue at hand. It's easier to understand "newly-generated" than "pulled from the keypool". In that same thread I agreed that the keypool is used for generations:

ah, theymos, you're here - so what about the key pool? will the 'looking at wallet backup' thing work?

Yes. It's good for 100 generations (and you can use the -keypool switch to increase this).