Skip to content

Wallet: (Refactor) GetBalance to calculate used balance

Add GetFullBalance() to compute used balance in getbalances RPC and on GUI GUI PR #775

_Check https://github.com/bitcoin/bitcoin/pull/28776#discussion_r1407875236 by @achow101_

However, I think it would be better to move all of this into GetBalance itself and just have it always compute the used balance for us rather than having the caller do this extra computation.

Update:

  • Compute used balance from GetBalance(...)

Merge request reports

Loading