Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wallet-grpc): return correct available balance and add timelocked…
…_balance (#5181) Description --- get_balance call to returns timelocked_balance get_balance call returns funds that are immediately spendable Motivation and Context --- Calls to get_balance seemingly do not yield the correct balance, e.g your wallet ui says available balance == 0 but the grpc call says available_balance > 0 (because it includes the timelocked funds). This PR changes the available_balance to reflect the amount of funds immediately spendable. This only happens on the grpc level to avoid a breaking change in other code (FFI etc) How Has This Been Tested? --- Existing cucumber. Tested with VN that queries the balance. <!-- Does this include a breaking change? If so, include this line as a footer --> BREAKING CHANGE: get_balance grpc call has changed, available_balance no longer includes timelocked funds only immediately available funds. This probably only is used currently in cucumber tests.
- Loading branch information