Skip to content

Commit 46c0c92

Browse files
committed
f: ser/de PaymentPathSuccessful
1 parent a155490 commit 46c0c92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/events/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,7 @@ impl Writeable for Event {
16711671
(2, payment_hash, option),
16721672
(4, path.hops, required_vec),
16731673
(6, path.blinded_tail, option),
1674+
(8, path.trampoline_hops, optional_vec),
16741675
})
16751676
},
16761677
&Event::PaymentFailed { ref payment_id, ref payment_hash, ref reason } => {
@@ -2084,11 +2085,12 @@ impl MaybeReadable for Event {
20842085
(2, payment_hash, option),
20852086
(4, path, required_vec),
20862087
(6, blinded_tail, option),
2088+
(8, trampoline_path, optional_vec),
20872089
});
20882090
Ok(Some(Event::PaymentPathSuccessful {
20892091
payment_id: payment_id.0.unwrap(),
20902092
payment_hash,
2091-
path: Path { hops: path, trampoline_hops: vec![], blinded_tail },
2093+
path: Path { hops: path, trampoline_hops: trampoline_path.unwrap_or(vec![]), blinded_tail },
20922094
}))
20932095
};
20942096
f()

0 commit comments

Comments
 (0)