@@ -882,13 +882,6 @@ func runFindPathWithMetadata(t *testing.T, useCache bool) {
882
882
883
883
_ , err = ctx .findPath (target , paymentAmt )
884
884
require .ErrorIs (t , errNoPathFound , err )
885
-
886
- // Assert that tlv payload support takes precedence over metadata
887
- // issues.
888
- ctx .restrictParams .DestFeatures = lnwire .EmptyFeatureVector ()
889
-
890
- _ , err = ctx .findPath (target , paymentAmt )
891
- require .ErrorIs (t , errNoTlvPayload , err )
892
885
}
893
886
894
887
// runFindLowestFeePath tests that out of two routes with identical total
@@ -1261,20 +1254,6 @@ func runPathFindingWithAdditionalEdges(t *testing.T, useCache bool) {
1261
1254
restrictions := * noRestrictions
1262
1255
restrictions .DestCustomRecords = record.CustomSet {70000 : []byte {}}
1263
1256
1264
- _ , err = find (& restrictions )
1265
- if err != errNoTlvPayload {
1266
- t .Fatalf ("path shouldn't have been found: %v" , err )
1267
- }
1268
-
1269
- // Set empty dest features so we don't try the fallback. We should still
1270
- // fail since the tlv feature isn't set.
1271
- restrictions .DestFeatures = lnwire .EmptyFeatureVector ()
1272
-
1273
- _ , err = find (& restrictions )
1274
- if err != errNoTlvPayload {
1275
- t .Fatalf ("path shouldn't have been found: %v" , err )
1276
- }
1277
-
1278
1257
// Finally, set the tlv feature in the payload and assert we found the
1279
1258
// same path as before.
1280
1259
restrictions .DestFeatures = tlvFeatures
@@ -1775,31 +1754,12 @@ func runDestTLVGraphFallback(t *testing.T, useCache bool) {
1775
1754
// Add custom records w/o any dest features.
1776
1755
restrictions .DestCustomRecords = record.CustomSet {70000 : []byte {}}
1777
1756
1778
- // Path to luoji should fail because his node ann features are empty.
1779
- _ , err = find (& restrictions , luoji )
1780
- if err != errNoTlvPayload {
1781
- t .Fatalf ("path shouldn't have been found: %v" , err )
1782
- }
1783
-
1784
1757
// However, path to satoshi should succeed via the fallback because his
1785
1758
// node ann features have the TLV bit.
1786
1759
path , err := find (& restrictions , satoshi )
1787
1760
require .NoError (t , err , "path should have been found" )
1788
1761
assertExpectedPath (t , ctx .testGraphInstance .aliasMap , path , "satoshi" )
1789
1762
1790
- // Add empty destination features. This should cause both paths to fail,
1791
- // since this override anything in the graph.
1792
- restrictions .DestFeatures = lnwire .EmptyFeatureVector ()
1793
-
1794
- _ , err = find (& restrictions , luoji )
1795
- if err != errNoTlvPayload {
1796
- t .Fatalf ("path shouldn't have been found: %v" , err )
1797
- }
1798
- _ , err = find (& restrictions , satoshi )
1799
- if err != errNoTlvPayload {
1800
- t .Fatalf ("path shouldn't have been found: %v" , err )
1801
- }
1802
-
1803
1763
// Finally, set the TLV dest feature. We should succeed in finding a
1804
1764
// path to luoji.
1805
1765
restrictions .DestFeatures = tlvFeatures
0 commit comments