mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 22:54:26 +01:00
rpc: properly return satoshis in WalletBalance response
This commit is contained in:
@@ -864,7 +864,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context,
|
|||||||
rpcsLog.Debugf("[walletbalance] balance=%v", balance)
|
rpcsLog.Debugf("[walletbalance] balance=%v", balance)
|
||||||
|
|
||||||
return &lnrpc.WalletBalanceResponse{
|
return &lnrpc.WalletBalanceResponse{
|
||||||
Balance: balance.ToBTC(),
|
Balance: int64(balance),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user