Skip to content

wallet: change getwalletinfo RPC 'balance' to be confirmed balance, i…#508

Closed
ca98am79 wants to merge 1 commit intohandshake-org:masterfrom
ca98am79:505-wallet-rpc-getwalletinfo-confirmed-balance
Closed

wallet: change getwalletinfo RPC 'balance' to be confirmed balance, i…#508
ca98am79 wants to merge 1 commit intohandshake-org:masterfrom
ca98am79:505-wallet-rpc-getwalletinfo-confirmed-balance

Conversation

@ca98am79
Copy link
Contributor

…nstead of repeating unconfirmed balance

see issue #505

walletid: wallet.id,
walletversion: 6,
balance: Amount.coin(balance.unconfirmed, true),
balance: Amount.coin(balance.confirmed, true),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok my thinking on this: Let's not break backwards compatibility by changing what is returned here. We don't want to mess up any application relying on this value always being the "safest" (confirmed) balance.

What I think could be useful is just adding more values. We already have unconfirmed_balance, let's just add confirmed_balance and spendable_balance (combine with #507)

@nodech nodech closed this Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants