From bccb1b920348e646495e30dc385b9a34ab74937f Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 6 Sep 2016 12:44:05 -0700 Subject: [PATCH] rpc: ensure wallet balances are returned in units of BTC --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index a897b6ad..f67821cd 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -382,7 +382,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context, 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