We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c88d7 commit a14b850Copy full SHA for a14b850
lightning/src/routing/router.rs
@@ -2771,7 +2771,7 @@ where L::Target: Logger {
2771
if !features.requires_unknown_bits() {
2772
for chan_id in $node.channels.iter() {
2773
let chan = network_channels.get(chan_id).unwrap();
2774
- if !chan.features.requires_unknown_bits() && chan.contract_id == route_params.rgb_payment.map(|(cid, _)| cid) {
+ if !chan.features.requires_unknown_bits() && route_params.rgb_payment.map_or(true, |(cid, _)| Some(cid) == chan.contract_id) {
2775
if let Some((directed_channel, source)) = chan.as_directed_to(&$node_id) {
2776
if first_hops.is_none() || *source != our_node_id {
2777
if directed_channel.direction().enabled {
0 commit comments