You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log cases where an onion failure cannot be attributed or interpreted
Create more visibility into these edge cases. The non-attributable
failure in particular can be used to disrupt sender operation and it is
therefore good to at least log these cases clearly.
short_channel_id:0, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:1, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:2, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:3, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:4, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
1833
+
},
1834
+
],blinded_tail:None}
1835
+
}
1836
+
1788
1837
fnbuild_test_onion_keys() -> Vec<OnionKeys>{
1789
1838
// Keys from BOLT 4, used in both test vector tests
short_channel_id:0, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:0, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:0, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:0, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
short_channel_id:0, fee_msat:0, cltv_expiry_delta:0, maybe_announced_channel:true,// We fill in the payloads manually instead of generating them from RouteHops.
1818
-
},
1819
-
], blinded_tail:None}],
1843
+
paths:vec![path],
1820
1844
route_params:None,
1821
1845
};
1822
1846
@@ -2078,6 +2102,40 @@ mod tests {
2078
2102
);
2079
2103
let hex = "9c5add3963fc7f6ed7f148623c84134b5647e1306419dbe2174e523fa9e2fbed3a06a19f899145610741c83ad40b7712aefaddec8c6baf7325d92ea4ca4d1df8bce517f7e54554608bf2bd8071a4f52a7a2f7ffbb1413edad81eeea5785aa9d990f2865dc23b4bc3c301a94eec4eabebca66be5cf638f693ec256aec514620cc28ee4a94bd9565bc4d4962b9d3641d4278fb319ed2b84de5b665f307a2db0f7fbb757366067d88c50f7e829138fde4f78d39b5b5802f1b92a8a820865af5cc79f9f30bc3f461c66af95d13e5e1f0381c184572a91dee1c849048a647a1158cf884064deddbf1b0b88dfe2f791428d0ba0f6fb2f04e14081f69165ae66d9297c118f0907705c9c4954a199bae0bb96fad763d690e7daa6cfda59ba7f2c8d11448b604d12d";
0 commit comments