channeldb: complete migration 12 for TLV invoices

This commit is contained in:
Conner Fromknecht
2019-11-22 02:24:28 -08:00
parent 76682ad820
commit 4c872c438b
10 changed files with 216 additions and 144 deletions

View File

@@ -242,6 +242,14 @@ func RouteHint(routeHint []HopHint) func(*Invoice) {
}
}
// Features is a functional option that allows callers of NewInvoice to set the
// desired feature bits that are advertised on the invoice.
func Features(features *lnwire.FeatureVector) func(*Invoice) {
return func(i *Invoice) {
i.Features = features
}
}
// NewInvoice creates a new Invoice object. The last parameter is a set of
// variadic arguments for setting optional fields of the invoice.
//