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.
2 parents b747b39 + caccb1c commit 5c49358Copy full SHA for 5c49358
lightning/src/blinded_path/payment.rs
@@ -120,11 +120,14 @@ impl TryFrom<CounterpartyForwardingInfo> for PaymentRelay {
120
121
impl Writeable for ForwardTlvs {
122
fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
123
+ let features_opt =
124
+ if self.features == BlindedHopFeatures::empty() { None }
125
+ else { Some(&self.features) };
126
encode_tlv_stream!(w, {
127
(2, self.short_channel_id, required),
128
(10, self.payment_relay, required),
129
(12, self.payment_constraints, required),
- (14, self.features, required)
130
+ (14, features_opt, option)
131
});
132
Ok(())
133
}
0 commit comments