zpay32: move HopHint and DefaultFinalCLTVDelta

This commit is contained in:
Joost Jager committed 2019-03-15 10:08:32 +01:00
1 parent 652ebb1652
commit 2be1051fb6
11 files changed
+70 -66

No files matched your search

+1 -2
View File
@@ -7,7 +7,6 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/routing"
"github.com/lightningnetwork/lnd/zpay32"
)
@@ -93,7 +92,7 @@ func CreateRPCInvoice(invoice *channeldb.Invoice,
// CreateRPCRouteHints takes in the decoded form of an invoice's route hints
// and converts them into the lnrpc type.
func CreateRPCRouteHints(routeHints [][]routing.HopHint) []*lnrpc.RouteHint {
func CreateRPCRouteHints(routeHints [][]zpay32.HopHint) []*lnrpc.RouteHint {
var res []*lnrpc.RouteHint
for _, route := range routeHints {