mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 13:04:28 +02:00
multi: make tlv onion compulsory
This commit is contained in:
@@ -181,11 +181,13 @@ func (c *integratedRoutingContext) testPayment(maxParts uint32,
|
||||
FeeLimit: lnwire.MaxMilliSatoshi,
|
||||
Target: c.target.pubkey,
|
||||
PaymentAddr: &paymentAddr,
|
||||
DestFeatures: lnwire.NewFeatureVector(baseFeatureBits, nil),
|
||||
Amount: c.amt,
|
||||
CltvLimit: math.MaxUint32,
|
||||
MaxParts: maxParts,
|
||||
RouteHints: c.routeHints,
|
||||
DestFeatures: lnwire.NewFeatureVector(
|
||||
baseFeatureBits, lnwire.Features,
|
||||
),
|
||||
Amount: c.amt,
|
||||
CltvLimit: math.MaxUint32,
|
||||
MaxParts: maxParts,
|
||||
RouteHints: c.routeHints,
|
||||
}
|
||||
|
||||
var paymentHash [32]byte
|
||||
|
@@ -379,7 +379,7 @@ func TestPaymentAddrOnlyNoSplit(t *testing.T) {
|
||||
twoPathGraph(ctx.graph, chanSize, chanSize)
|
||||
|
||||
payAddrOnlyFeatures := []lnwire.FeatureBit{
|
||||
lnwire.TLVOnionPayloadOptional,
|
||||
lnwire.TLVOnionPayloadRequired,
|
||||
lnwire.PaymentAddrOptional,
|
||||
}
|
||||
|
||||
|
@@ -60,7 +60,7 @@ var (
|
||||
|
||||
tlvFeatures = lnwire.NewFeatureVector(
|
||||
lnwire.NewRawFeatureVector(
|
||||
lnwire.TLVOnionPayloadOptional,
|
||||
lnwire.TLVOnionPayloadRequired,
|
||||
), lnwire.Features,
|
||||
)
|
||||
|
||||
@@ -72,13 +72,13 @@ var (
|
||||
|
||||
tlvPayAddrFeatures = lnwire.NewFeatureVector(
|
||||
lnwire.NewRawFeatureVector(
|
||||
lnwire.TLVOnionPayloadOptional,
|
||||
lnwire.TLVOnionPayloadRequired,
|
||||
lnwire.PaymentAddrOptional,
|
||||
), lnwire.Features,
|
||||
)
|
||||
|
||||
mppFeatures = lnwire.NewRawFeatureVector(
|
||||
lnwire.TLVOnionPayloadOptional,
|
||||
lnwire.TLVOnionPayloadRequired,
|
||||
lnwire.PaymentAddrOptional,
|
||||
lnwire.MPPOptional,
|
||||
)
|
||||
|
Reference in New Issue
Block a user