lnwire+lnwallet+fundingmanager: general improvements

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2016-12-13 11:01:57 -08:00
1 parent a6f7f05323
commit 5a82240c6a
13 files changed
+146 -108

No files matched your search

+1 -7
View File
@@ -29,12 +29,6 @@ import (
"golang.org/x/net/context"
)
const (
// ErrorMaxPendingChannels is an additional gRPC error, which is
// returned if max pending channel restriction was violated.
ErrorMaxPendingChannels = 100
)
var (
defaultAccount uint32 = waddrmgr.DefaultAccountNum
)
@@ -771,7 +765,7 @@ func (r *rpcServer) constructPaymentRoute(destPubkey []byte, amt int64,
// meta-data within this packet will be used to route the payment
// through the network.
htlcAdd := &lnwire.HTLCAddRequest{
Amount: lnwire.CreditsAmount(amt),
Amount: btcutil.Amount(amt),
RedemptionHashes: [][32]byte{rHash},
OnionBlob: sphinxPacket,
}