From 7c5af4b851f9aa40f439d561d32dc19baf54fec8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 4 Jul 2017 15:51:03 -0700 Subject: [PATCH] rpc: properly return satoshis in WalletBalance response --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 58c8d457..4ccbf2b6 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -864,7 +864,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context, rpcsLog.Debugf("[walletbalance] balance=%v", balance) return &lnrpc.WalletBalanceResponse{ - Balance: balance.ToBTC(), + Balance: int64(balance), }, nil }