diff options
author | Gregory Maxwell <greg@xiph.org> | 2014-12-24 21:10:59 -0800 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2014-12-25 20:14:29 -0800 |
commit | 8024d67dae9da4a5259cddc0fa713146272f7aad (patch) | |
tree | 00d5eccb7a329177c85b935903c6948e2d9f761b /src/rpcwallet.cpp | |
parent | d44c545673c0d75d1a2febe69685904787f8b21c (diff) | |
download | bitcoin-8024d67dae9da4a5259cddc0fa713146272f7aad.tar.xz |
Add immature balances to getwalletinfo.
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r-- | src/rpcwallet.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 7c371ae2e9..8366430f18 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1991,7 +1991,8 @@ Value getwalletinfo(const Array& params, bool fHelp) "{\n" " \"walletversion\": xxxxx, (numeric) the wallet version\n" " \"balance\": xxxxxxx, (numeric) the total confirmed bitcoin balance of the wallet\n" - " \"unconfirmedbalance\": xxxx, (numeric) the total unconfirmed bitcoin balance of the wallet\n" + " \"unconfirmed_balance\": xxx, (numeric) the total unconfirmed bitcoin balance of the wallet\n" + " \"immature_balance\": xxxxxx, (numeric) the total immature balance of the wallet\n" " \"txcount\": xxxxxxx, (numeric) the total number of transactions in the wallet\n" " \"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n" " \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n" @@ -2005,7 +2006,8 @@ Value getwalletinfo(const Array& params, bool fHelp) Object obj; obj.push_back(Pair("walletversion", pwalletMain->GetVersion())); obj.push_back(Pair("balance", ValueFromAmount(pwalletMain->GetBalance()))); - obj.push_back(Pair("unconfirmedbalance", ValueFromAmount(pwalletMain->GetUnconfirmedBalance()))); + obj.push_back(Pair("unconfirmed_balance", ValueFromAmount(pwalletMain->GetUnconfirmedBalance()))); + obj.push_back(Pair("immature_balance", ValueFromAmount(pwalletMain->GetImmatureBalance()))); obj.push_back(Pair("txcount", (int)pwalletMain->mapWallet.size())); obj.push_back(Pair("keypoololdest", pwalletMain->GetOldestKeyPoolTime())); obj.push_back(Pair("keypoolsize", (int)pwalletMain->GetKeyPoolSize())); |