Skip to content

Add unconfirmedbalance field to getwalletinfo#5522

Closed
esotericnonsense wants to merge 1 commit intobitcoin:masterfrom
esotericnonsense:getwalletinfo
Closed

Add unconfirmedbalance field to getwalletinfo#5522
esotericnonsense wants to merge 1 commit intobitcoin:masterfrom
esotericnonsense:getwalletinfo

Conversation

@esotericnonsense
Copy link
Copy Markdown
Contributor

The default behaviour of RPC 'getbalance' is to exclude unconfirmed wallet transactions in the balance calculation.

There exists an additional RPC command 'getunconfirmedbalance' which returns only the sum of incoming unconfirmed transactions.

This patch adds an 'unconfirmedbalance' field to getwalletinfo, reducing the need for additional RPC queries. The functionality is equivalent to 'getunconfirmedbalance'.

I have tested this patch on testnet and it works as expected.

@fanquake
Copy link
Copy Markdown
Member

@azeteki Do you want to close you pull now that gmaxwell has added your commit to #5540?

@jonasschnelli
Copy link
Copy Markdown
Contributor

accidentally superseded by #5540.

@sipa
Copy link
Copy Markdown
Member

sipa commented Jan 4, 2015

Merged through #5540.

@sipa sipa closed this Jan 4, 2015
@esotericnonsense
Copy link
Copy Markdown
Contributor Author

Apologies for the delay in replying/failure to close!

I seem to remember chatting to gmaxwell about this on IRC so it may be that we just duplicated work. A ten second change anyway. :)

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants