Skip to content

Conversation

@gavinandresen
Copy link
Contributor

Two changes:

Use IsConfirmed() instead of IsFinal(), so 'getbalance "*" 0' uses the same
'is this output spendable' criteria as 'getbalance'. Fixes issue #172.

And a tiny refactor to CWallet::GetBalance() (redundant call to IsFinal -- IsConfirmed
calls IsFinal).

Two changes:

Use IsConfirmed() instead of IsFinal(), so 'getbalance "*" 0' uses the same
'is this output spendable' criteria as 'getbalance'. Fixes issue bitcoin#172.

And a tiny refactor to CWallet::GetBalance() (redundant call to IsFinal -- IsConfirmed
calls IsFinal).
getbalance with no arguments and 'getbalance "*" 0' could return different different results,
@Diapolo
Copy link

Diapolo commented Feb 4, 2013

Does this affect Bitcoin-Qt in a way we need to take care of? Just asking without any research...

@BitcoinPullTester
Copy link

@sipa
Copy link
Member

sipa commented Apr 7, 2013

ACK

@Diapolo
Copy link

Diapolo commented Apr 8, 2013

@sipa Can you comment to my question above ;)?

gavinandresen added a commit that referenced this pull request Apr 8, 2013
@gavinandresen gavinandresen merged commit 1829134 into bitcoin:master Apr 8, 2013
@sipa
Copy link
Member

sipa commented Apr 8, 2013

I don't think this influences the GUi in any way.

namecoin-qt referenced this pull request in namecoin-qt/namecoin-qt Jun 10, 2013
@gavinandresen gavinandresen deleted the getbalancefix branch November 4, 2013 06:15
davispuh referenced this pull request in davispuh/namecoin Feb 18, 2014
laudney pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this pull request Mar 19, 2014
@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.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants