Bitcoin Forum
November 09, 2024, 04:05:19 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind balance doesn't agree  (Read 761 times)
optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
March 29, 2013, 01:49:41 PM
 #1

Hello,

I'm running 0.8.1 - I just noticed that the balance in shown in the wallet doesn't agree with the balance from http://blockchain.info/unspent?active=XXX

I've narrowed the discrepancy down to a single address. The blockchain info call shows more available than my wallet. Any ideas on how to determine why the differences exist?

Cheers!

optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
March 29, 2013, 04:00:33 PM
 #2

Here's what I've been able to figure out so far... but I'm still confused  Huh

Say I transfer 100 btc from my wallet to another address.

I know when creating the transaction my wallet will spend all from every transaction to get me the 100 btc. Anything over the 100 btc will be returned to me.

So I have my prev_out totaling 102.625 btc.

I send 100 btc and it goes to the correct address.

The 2.625 btc gets returned to me, and my wallet shows it available, and listunspent shows it available.

However, when I try dumpprivkey for the new address that the 2.625 btc was sent to, my wallet tells me it's not known. Why?

deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
March 30, 2013, 08:01:01 AM
Last edit: March 30, 2013, 01:11:19 PM by deepceleron
 #3

Do not look at blockchain.info or other block explorer websites to determine information about your wallet balance. You have many addresses in your wallet, some hidden from you, that together contribute to your balance. It is a feature that nobody on the Bitcoin network can reliably determine all the addresses that are yours.

You may have an amount removed from your wallet balance if you have transmitted any transactions which are not confirmed. I don't know why you are having problems dumping a key other than the address is not yours, I just confirmed that even unused reserve address keys can be dumped.
optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
March 30, 2013, 12:46:25 PM
 #4

Do not look at blockchain to determine information about your wallet balance. You have many addresses in your wallet, some hidden from you, that together contribute to your balance. It is a feature that nobody on the Bitcoin network can reliably determine all the addresses that are yours.

You may have an amount removed from your wallet balance if you have transmitted any transactions which are not confirmed. I don't know why you are having problems dumping a key other than the address is not yours, I just confirmed that even unused reserve address keys can be dumped.

Got it - Thanks! So when bitcoind creates a transaction and there are funds to be returned to me, does bitcoind use one of the reserved addresses? Or does it create a new address for the transaction?

CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 30, 2013, 12:53:07 PM
 #5

It will use the first reserved one in the list.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
March 31, 2013, 02:18:42 AM
 #6

It will use the first reserved one in the list.


That make sense. But I can't dump the private key for that address. Any ideas why?

I guess I could add a new address and see if the new address was the address used and then see if I can dump the private key...

CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 31, 2013, 03:30:19 AM
 #7

Oh - sorry - has it has been used it should not longer be "reserved" (the addresses that are marked as "reserved" are ones that you have not yet used either through creating an address explicitly or implicitly for receiving "change").

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
optimator (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
March 31, 2013, 06:39:55 PM
 #8

I have three return addresses that were created by sending money.

I tried adding 2 new addresses in bitcoind to see if the newly created address (from the reserve addresses?) would be the return addresses. They are not.

I also can not get access to the private key for the return addresses.

Does anyone know if this is the expected behavior (i.e. the private key for return addresses is inaccessible) Huh

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!