lnwire+lnwallet+fundingmanager: general improvements

This commit is contained in:
Andrey Samokhvalov
2016-11-24 11:49:18 +03:00
committed by Olaoluwa Osuntokun
parent a6f7f05323
commit 5a82240c6a
13 changed files with 146 additions and 108 deletions

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,
}