You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Bitcoin Core 0.15, the getbalance RPC method was optimised. Unfortunately, the new implementation is bug-ridden, and was never fixed in Core. Beginning with Knots 0.17.1, it was "fixed" by restoring the slower implementation, and throwing an error for parameter combinations known to be broken. Furthermore, the old implementation was then found to have bugs with unconfirmed conflicting transactions, which were hackily addressed by only observing them if they are in the node's current mempool.
Another concern is that the RPC is now out of sync with Core's behaviour for years. It's unclear if there are any de facto deviations in this regard.
The newer getbalances RPC has deprecated getbalance in the meantime, but doesn't provide a simple answer to the question "how many bitcoins do I have?"
It would be nice to:
Ensure getbalance behaviour always matches Core and prior Knots versions, within the scope of their documented functionality.
Add a new result to getbalances that gives a simple answer to "how many bitcoins do I have?". This should consider all valid debits (but not exclude change!), and only include incoming transactions after a configurable number of blocks confirmation. Note that this can result in negative balances, if unconfirmed debits exceed the confirmed received total.
See also: bitcoin#14602 (previous attempt to fix, buggy)
The text was updated successfully, but these errors were encountered:
In Bitcoin Core 0.15, the
getbalance
RPC method was optimised. Unfortunately, the new implementation is bug-ridden, and was never fixed in Core. Beginning with Knots 0.17.1, it was "fixed" by restoring the slower implementation, and throwing an error for parameter combinations known to be broken. Furthermore, the old implementation was then found to have bugs with unconfirmed conflicting transactions, which were hackily addressed by only observing them if they are in the node's current mempool.Another concern is that the RPC is now out of sync with Core's behaviour for years. It's unclear if there are any de facto deviations in this regard.
The newer
getbalances
RPC has deprecatedgetbalance
in the meantime, but doesn't provide a simple answer to the question "how many bitcoins do I have?"It would be nice to:
getbalance
behaviour always matches Core and prior Knots versions, within the scope of their documented functionality.getbalances
that gives a simple answer to "how many bitcoins do I have?". This should consider all valid debits (but not exclude change!), and only include incoming transactions after a configurable number of blocks confirmation. Note that this can result in negative balances, if unconfirmed debits exceed the confirmed received total.See also: bitcoin#14602 (previous attempt to fix, buggy)
The text was updated successfully, but these errors were encountered: