Skip to main content

NO_INCOMING_CIRCUIT

Constant NO_INCOMING_CIRCUIT 

Source
pub const NO_INCOMING_CIRCUIT: (u64, u64);
Expand description

The (incoming_chan_id, htlc_id) circuit key reported for a payment that did not arrive as an intercepted forward and therefore has no incoming circuit to resolve: an LNv2 payment held by a HOLD invoice on the gateway’s own node, and every payment reported by the LDK backend.

Zero is unambiguous as a marker because no channel is assigned a zero short channel id: a confirmed channel’s id encodes its funding block height, and an unconfirmed one gets an alias from a high range. LND reserves zero for locally originated payments and exit hops, neither of which is a forward the gateway intercepts.