@@ -520,46 +520,46 @@ pub extern "C" fn HTLCFailChannelUpdate_free(this_ptr: HTLCFailChannelUpdate) {
520
520
pub struct ChannelMessageHandler {
521
521
pub this_arg : * mut c_void ,
522
522
/// " Handle an incoming open_channel message from the given peer."
523
- pub handle_open_channel : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , their_features : crate :: ln:: features:: InitFeatures , msg : & OpenChannel ) ,
523
+ pub handle_open_channel : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , their_features : crate :: ln:: features:: InitFeatures , msg : & OpenChannel ) ,
524
524
/// " Handle an incoming accept_channel message from the given peer."
525
- pub handle_accept_channel : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , their_features : crate :: ln:: features:: InitFeatures , msg : & AcceptChannel ) ,
525
+ pub handle_accept_channel : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , their_features : crate :: ln:: features:: InitFeatures , msg : & AcceptChannel ) ,
526
526
/// " Handle an incoming funding_created message from the given peer."
527
- pub handle_funding_created : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & FundingCreated ) ,
527
+ pub handle_funding_created : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & FundingCreated ) ,
528
528
/// " Handle an incoming funding_signed message from the given peer."
529
- pub handle_funding_signed : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & FundingSigned ) ,
529
+ pub handle_funding_signed : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & FundingSigned ) ,
530
530
/// " Handle an incoming funding_locked message from the given peer."
531
- pub handle_funding_locked : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & FundingLocked ) ,
531
+ pub handle_funding_locked : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & FundingLocked ) ,
532
532
/// " Handle an incoming shutdown message from the given peer."
533
- pub handle_shutdown : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & Shutdown ) ,
533
+ pub handle_shutdown : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & Shutdown ) ,
534
534
/// " Handle an incoming closing_signed message from the given peer."
535
- pub handle_closing_signed : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & ClosingSigned ) ,
535
+ pub handle_closing_signed : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & ClosingSigned ) ,
536
536
/// " Handle an incoming update_add_htlc message from the given peer."
537
- pub handle_update_add_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateAddHTLC ) ,
537
+ pub handle_update_add_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateAddHTLC ) ,
538
538
/// " Handle an incoming update_fulfill_htlc message from the given peer."
539
- pub handle_update_fulfill_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFulfillHTLC ) ,
539
+ pub handle_update_fulfill_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFulfillHTLC ) ,
540
540
/// " Handle an incoming update_fail_htlc message from the given peer."
541
- pub handle_update_fail_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFailHTLC ) ,
541
+ pub handle_update_fail_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFailHTLC ) ,
542
542
/// " Handle an incoming update_fail_malformed_htlc message from the given peer."
543
- pub handle_update_fail_malformed_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFailMalformedHTLC ) ,
543
+ pub handle_update_fail_malformed_htlc : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFailMalformedHTLC ) ,
544
544
/// " Handle an incoming commitment_signed message from the given peer."
545
- pub handle_commitment_signed : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & CommitmentSigned ) ,
545
+ pub handle_commitment_signed : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & CommitmentSigned ) ,
546
546
/// " Handle an incoming revoke_and_ack message from the given peer."
547
- pub handle_revoke_and_ack : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & RevokeAndACK ) ,
547
+ pub handle_revoke_and_ack : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & RevokeAndACK ) ,
548
548
/// " Handle an incoming update_fee message from the given peer."
549
- pub handle_update_fee : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFee ) ,
549
+ pub handle_update_fee : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & UpdateFee ) ,
550
550
/// " Handle an incoming announcement_signatures message from the given peer."
551
- pub handle_announcement_signatures : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & AnnouncementSignatures ) ,
551
+ pub handle_announcement_signatures : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & AnnouncementSignatures ) ,
552
552
/// " Indicates a connection to the peer failed/an existing connection was lost. If no connection"
553
553
/// " is believed to be possible in the future (eg they're sending us messages we don't"
554
554
/// " understand or indicate they require unknown feature bits), no_connection_possible is set"
555
555
/// " and any outstanding channels should be failed."
556
- pub peer_disconnected : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , no_connection_possible : bool ) ,
556
+ pub peer_disconnected : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , no_connection_possible : bool ) ,
557
557
/// " Handle a peer reconnecting, possibly generating channel_reestablish message(s)."
558
- pub peer_connected : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & Init ) ,
558
+ pub peer_connected : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & Init ) ,
559
559
/// " Handle an incoming channel_reestablish message from the given peer."
560
- pub handle_channel_reestablish : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & ChannelReestablish ) ,
560
+ pub handle_channel_reestablish : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & ChannelReestablish ) ,
561
561
/// " Handle an incoming error message from the given peer."
562
- pub handle_error : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & ErrorMessage ) ,
562
+ pub handle_error : extern "C" fn ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & ErrorMessage ) ,
563
563
pub MessageSendEventsProvider : crate :: util:: events:: MessageSendEventsProvider ,
564
564
}
565
565
impl lightning:: util:: events:: MessageSendEventsProvider for ChannelMessageHandler {
@@ -650,7 +650,7 @@ pub struct RoutingMessageHandler {
650
650
//XXX: Need to export get_next_channel_announcements
651
651
//XXX: Need to export get_next_node_announcements
652
652
/// " Returns whether a full sync should be requested from a peer."
653
- pub should_request_full_sync : extern "C" fn ( this_arg : * const c_void , node_id : crate :: c_types:: PublicKey ) -> bool ,
653
+ pub should_request_full_sync : extern "C" fn ( this_arg : * const c_void , node_id : crate :: c_types:: PublicKey ) -> bool ,
654
654
}
655
655
unsafe impl Send for RoutingMessageHandler { }
656
656
unsafe impl Sync for RoutingMessageHandler { }
0 commit comments