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 @@ -647,12 +647,14 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
647
647
route_handler : Arc :: clone ( & p2p_gossip_sync)
648
648
as Arc < dyn RoutingMessageHandler + Sync + Send > ,
649
649
onion_message_handler : onion_messenger,
650
+ custom_message_handler : IgnoringMessageHandler { } ,
650
651
} ,
651
652
GossipSync :: Rapid ( _) => MessageHandler {
652
653
chan_handler : Arc :: clone ( & channel_manager) ,
653
654
route_handler : Arc :: new ( IgnoringMessageHandler { } )
654
655
as Arc < dyn RoutingMessageHandler + Sync + Send > ,
655
656
onion_message_handler : onion_messenger,
657
+ custom_message_handler : IgnoringMessageHandler { } ,
656
658
} ,
657
659
GossipSync :: None => {
658
660
unreachable ! ( "We must always have a gossip sync!" ) ;
@@ -664,7 +666,6 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
664
666
cur_time. as_secs ( ) . try_into ( ) . map_err ( |_| BuildError :: InvalidSystemTime ) ?,
665
667
& ephemeral_bytes,
666
668
Arc :: clone ( & logger) ,
667
- IgnoringMessageHandler { } ,
668
669
Arc :: clone ( & keys_manager) ,
669
670
) ) ;
670
671
Original file line number Diff line number Diff line change @@ -1140,9 +1140,12 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
1140
1140
invoice. min_final_cltv_expiry_delta ( ) as u32 ,
1141
1141
)
1142
1142
. with_expiry_time ( expiry_time. as_secs ( ) )
1143
- . with_route_hints ( invoice. route_hints ( ) ) ;
1143
+ . with_route_hints ( invoice. route_hints ( ) )
1144
+ . map_err ( |_| Error :: InvalidInvoice ) ?;
1144
1145
if let Some ( features) = invoice. features ( ) {
1145
- payment_params = payment_params. with_features ( features. clone ( ) ) ;
1146
+ payment_params = payment_params
1147
+ . with_bolt11_features ( features. clone ( ) )
1148
+ . map_err ( |_| Error :: InvalidInvoice ) ?;
1146
1149
}
1147
1150
let route_params = RouteParameters { payment_params, final_value_msat : amount_msat } ;
1148
1151
You can’t perform that action at this time.
0 commit comments