File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -658,12 +658,14 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
658
658
route_handler : Arc :: clone ( & p2p_gossip_sync)
659
659
as Arc < dyn RoutingMessageHandler + Sync + Send > ,
660
660
onion_message_handler : onion_messenger,
661
+ custom_message_handler : IgnoringMessageHandler { } ,
661
662
} ,
662
663
GossipSync :: Rapid ( _) => MessageHandler {
663
664
chan_handler : Arc :: clone ( & channel_manager) ,
664
665
route_handler : Arc :: new ( IgnoringMessageHandler { } )
665
666
as Arc < dyn RoutingMessageHandler + Sync + Send > ,
666
667
onion_message_handler : onion_messenger,
668
+ custom_message_handler : IgnoringMessageHandler { } ,
667
669
} ,
668
670
GossipSync :: None => {
669
671
unreachable ! ( "We must always have a gossip sync!" ) ;
@@ -675,7 +677,6 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
675
677
cur_time. as_secs ( ) . try_into ( ) . map_err ( |_| BuildError :: InvalidSystemTime ) ?,
676
678
& ephemeral_bytes,
677
679
Arc :: clone ( & logger) ,
678
- IgnoringMessageHandler { } ,
679
680
Arc :: clone ( & keys_manager) ,
680
681
) ) ;
681
682
Original file line number Diff line number Diff line change @@ -1146,9 +1146,12 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
1146
1146
invoice. min_final_cltv_expiry_delta ( ) as u32 ,
1147
1147
)
1148
1148
. with_expiry_time ( expiry_time. as_secs ( ) )
1149
- . with_route_hints ( invoice. route_hints ( ) ) ;
1149
+ . with_route_hints ( invoice. route_hints ( ) )
1150
+ . map_err ( |_| Error :: InvalidInvoice ) ?;
1150
1151
if let Some ( features) = invoice. features ( ) {
1151
- payment_params = payment_params. with_features ( features. clone ( ) ) ;
1152
+ payment_params = payment_params
1153
+ . with_bolt11_features ( features. clone ( ) )
1154
+ . map_err ( |_| Error :: InvalidInvoice ) ?;
1152
1155
}
1153
1156
let route_params = RouteParameters { payment_params, final_value_msat : amount_msat } ;
1154
1157
You can’t perform that action at this time.
0 commit comments