rpc: ensure wallet balances are returned in units of BTC

This commit is contained in:
Olaoluwa Osuntokun 2016-09-06 12:44:05 -07:00
parent 0d871dabb3
commit bccb1b9203
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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