File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
lightning/src/blinded_path Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -514,6 +514,24 @@ impl Writeable for ForwardTlvs {
514
514
}
515
515
}
516
516
517
+ #[ cfg( trampoline) ]
518
+ impl Writeable for TrampolineForwardTlvs {
519
+ fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
520
+ let features_opt = if self . features == BlindedHopFeatures :: empty ( ) {
521
+ None
522
+ } else {
523
+ Some ( WithoutLength ( & self . features ) )
524
+ } ;
525
+ encode_tlv_stream ! ( w, {
526
+ ( 4 , self . next_trampoline, required) ,
527
+ ( 10 , self . payment_relay, required) ,
528
+ ( 12 , self . payment_constraints, required) ,
529
+ ( 14 , features_opt, option)
530
+ } ) ;
531
+ Ok ( ( ) )
532
+ }
533
+ }
534
+
517
535
impl Writeable for ReceiveTlvs {
518
536
fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
519
537
encode_tlv_stream ! ( w, {
You can’t perform that action at this time.
0 commit comments