-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring back "getunconfirmedbalance" #1463
Comments
Do you know what was the reason for removing it was? |
No. It was apparently an rpc command available in earlier version of bitcoin core. Would be nice to have it back as there is no easy way to get that info from rpc. |
I don't believe we have ever had it. |
Looks like the function CWallet::GetUnconfirmedBalance() would make it relatively easy to implement since that's most of the work needed to set it up |
Yes. We can create an rpc wrapper pretty easily for that. |
I don't think that command provides what you guys think given the if statement conditions...
|
Wait that's weird, why does it only do that if the balance is zero? |
the nTotal = 0 just initializes the accumulator outside of the for loop. The contents of the if statement is what worries me is the logic in the if statement... hmm... in quasi English... if the transaction is NOT final OR (NOT confirmed AND NOT FromME AND IsInMainChain) Does that do the right thing if the transaction is not final? |
oh sorry misread as |
Implemented the wrapper. Let's see if this gives you what you need. |
Bring back the rpc command for
getunconfirmedbalance
so we can see that a transaction is received pending minimum confirmations.The text was updated successfully, but these errors were encountered: