mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +02:00
lnrpc: add new locked balance field for WalletBalance
In this commit, we add a new field to the WalletBalance call that permits users to account for the set of outputs that may be locked due to a pending transaction. Without this field any time users locked outputs for things like PSBT signing, then they disappear from the WalletBalance call, which may cause a panic.
This commit is contained in:
@@ -2502,6 +2502,10 @@ message WalletBalanceResponse {
|
||||
// The unconfirmed balance of a wallet(with 0 confirmations)
|
||||
int64 unconfirmed_balance = 3;
|
||||
|
||||
// The total amount of wallet UTXOs held in outputs that are locked for
|
||||
// other usage.
|
||||
int64 locked_balance = 5;
|
||||
|
||||
// A mapping of each wallet account's name to its balance.
|
||||
map<string, WalletAccountBalance> account_balance = 4;
|
||||
}
|
||||
|
Reference in New Issue
Block a user