Bitcoin Forum
June 24, 2024, 05:19:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Re: bitcoind getbalance out differs from getbalance <account> on: December 27, 2012, 11:37:45 PM
Quote
There is a longstanding issue that might be related:
  https://github.com/bitcoin/bitcoin/issues/172

Hello Gavin, and thanks for the pointer.

Now from what i see at rpcwallet.cpp, line 519, with today's master (commit 23826f1)

Code:
    if (params[0].get_str() == "*") {
        // Calculate total balance a different way from GetBalance()
        // (GetBalance() sums up all unspent TxOuts)
        // getbalance and getbalance '*' should always return the same number.

And a couple of lines above that
Code:
    if (params.size() == 0)
        return  ValueFromAmount(pwalletMain->GetBalance());

Which is consistent with both the comment and the issue you opened.
So ... I guess that for this not to have been fixed yet it means that either it is an expected/wanted behaviour in which case it might not be bad to document it, or that something bad might happen if it is fixed and suddenly behaviour changes. Right ?
2  Other / Beginners & Help / Re: bitcoind getbalance out differs from getbalance <account> on: December 27, 2012, 11:08:19 PM
Quote
The balance of an account isn't related to how many bitcoins are currently "stored in" the account.

You lost me here. Please elaborate... or at least RTFM me with a link :-)

Quote
The balance of an account increases when the account receives bitcoins at one of its addresses, but decreases only when you explicitly move bitcoins from the account using something like sendfrom. getbalance without an account is the correct number of bitcoins in your wallet.

This makes sense.
3  Other / Beginners & Help / Re: Slush vs. p2pool on: December 27, 2012, 11:01:12 PM
Quote
In the long run, p2pool will definitely be better than deepbit since they take something like 10% for a fee.

More like 3% for Proportional payout and 7% for Pay Per Share payout at the time of this writing. P2Pool has only 0.5% sent to the guy that solved the block which is way better. That being said there are other complications with P2Pool such as DOAs and efficiency rate which are somewhat more difficult to grasp than in other simpler pools.

Quote
This last weeks variance of p2pool has been less than lucky

It was average in the end, but the funny thing was that for ~ 2d 22h no block was found and I was wondering what was going on...  Grin
4  Other / Beginners & Help / Re: bitcoind getbalance out differs from getbalance <account> on: December 27, 2012, 04:46:52 PM
I have sent out absolute no transactions. That being said... maybe transactions incoming to me have not yet been confirmed enough?  Get balance accepts one argument which is minimum number of confirmations. And at this point in time

Code:
bitcoind getbalance p2pool 88

does indeed match the output of

Code:
bitcoind getbalance

Both outputs btw have changed since my first post since my mining software has obviously not stopped running.

So maybe the default of getbalance command with no account as an argument does not match the default with an account as an argument?
Also maybe that's the point I should have a look at the code...  Grin

Thanks for the help guys.
5  Other / Beginners & Help / Re: bitcoind getbalance out differs from getbalance <account> on: December 27, 2012, 04:04:37 PM
Maybe I am misunderstanding something here...

Code:
bitcoind getbalance

should according to help return the server's total available balance. I believe this translates to the sum of all accounts. Right ?
So if I have an account with 1.16 BTC and 2 others with 0.0 BTC, the total should be 1.16. Right ?
Cause that is exactly the situation I am in...

Code:
bitcoind listaccounts
{
    "" : 0.00000000,
    "merfakos" : 0.00000000,
    "p2pool" : 1.16992134
}
6  Other / Beginners & Help / Re: Slush vs. p2pool on: December 27, 2012, 03:57:38 PM
This is just to share my 2 cents. I have joined p2pool for about a week now after being in deepbit pool for some time. Variance in p2pool is pretty big... Sometimes the pools gets lots of block in a day, sometimes not. You easily get the impression of lower payouts but in the long run it does seem to even out....
7  Other / Beginners & Help / bitcoind getbalance out differs from getbalance <account> on: December 27, 2012, 03:21:57 PM
Hello,

I have found myself in a weird situation which i can not explain and i would love someone to explain it to me. After trying some pools i decided i prefer above all else p2pool (at least this week..). So i have my bitcoind, run p2pool software and after some time I check my balance and i have this output:

Code:
> bitcoind getbalance
0.95000139
> bitcoind getbalance p2pool
1.16992134

p2pool is an account created by p2pool software in bitcoind.
help getbalance says:

Code:
bitcoind help getbalance
getbalance [account] [minconf=1]
If [account] is not specified, returns the server's total available balance.
If [account] is specified, returns the balance in the account.

So I would expect the first command to return at least something equal to the second command, if not something bigger...

Any idea what is going on ?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!