Package fr. acinq. lightning. wire
Types
Generic tlv type we fallback to if we don't understand the incoming tlv.
When we don't have enough incoming liquidity to receive a payment, our peer may open a channel to us on-the-fly to carry that payment. This message contains details that allow us to recalculate the fee that our peer will take in exchange for the new channel. This allows us to combine multiple requests for the same payment and figure out the final fee that will be applied.
A tlv stream is a collection of tlv records. A tlv stream is constrained to a specific tlv namespace that dictates how to parse the tlv records. That namespace is provided by a trait extending the top-level tlv trait.
We allow remote nodes to send us unknown failure codes (e.g. deprecated failure codes). By reading the PERM and NODE bits of the failure code we can still extract useful information for payment retry even without knowing how to decode the failure payload (but we can't extract a channel update or onion hash).