mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 14:44:22 +01:00
rpc: ensure wallet balances are returned in units of BTC
This commit is contained in:
@@ -382,7 +382,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context,
|
|||||||
|
|
||||||
rpcsLog.Debugf("[walletbalance] balance=%v", balance)
|
rpcsLog.Debugf("[walletbalance] balance=%v", balance)
|
||||||
|
|
||||||
return &lnrpc.WalletBalanceResponse{float64(balance)}, nil
|
return &lnrpc.WalletBalanceResponse{balance.ToBTC()}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// PendingChannels returns a list of all the channels that are currently
|
// PendingChannels returns a list of all the channels that are currently
|
||||||
|
|||||||
Reference in New Issue
Block a user