@@ -343,7 +343,7 @@ pub enum Event {
343343 /// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
344344 PaymentReceived {
345345 /// The node that recieved the payment, ie our node
346- our_node_id : PublicKey ,
346+ our_node_id : Option < PublicKey > ,
347347 /// The hash for which the preimage should be handed to the ChannelManager. Note that LDK will
348348 /// not stop you from registering duplicate payment hashes for inbound payments.
349349 payment_hash : PaymentHash ,
@@ -369,7 +369,7 @@ pub enum Event {
369369 /// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
370370 PaymentClaimed {
371371 /// The node that recieved the payment, ie our node
372- our_node_id : PublicKey ,
372+ our_node_id : Option < PublicKey > ,
373373 /// The payment hash of the claimed payment. Note that LDK will not stop you from
374374 /// registering duplicate payment hashes for inbound payments.
375375 payment_hash : PaymentHash ,
@@ -762,7 +762,7 @@ impl Writeable for Event {
762762 ( 4 , amount_msat, required) ,
763763 ( 6 , 0u64 , required) , // user_payment_id required for compatibility with 0.0.103 and earlier
764764 ( 8 , payment_preimage, option) ,
765- ( 10 , our_node_id, required ) ,
765+ ( 10 , our_node_id, option ) ,
766766 } ) ;
767767 } ,
768768 & Event :: PaymentSent { ref payment_id, ref payment_preimage, ref payment_hash, ref fee_paid_msat } => {
@@ -865,7 +865,7 @@ impl Writeable for Event {
865865 ( 0 , payment_hash, required) ,
866866 ( 2 , purpose, required) ,
867867 ( 4 , amount_msat, required) ,
868- ( 6 , our_node_id, required ) ,
868+ ( 6 , our_node_id, option ) ,
869869 } ) ;
870870 } ,
871871 & Event :: ProbeSuccessful { ref payment_id, ref payment_hash, ref path } => {
@@ -948,7 +948,7 @@ impl MaybeReadable for Event {
948948 None => return Err ( msgs:: DecodeError :: InvalidValue ) ,
949949 } ;
950950 Ok ( Some ( Event :: PaymentReceived {
951- our_node_id : our_node_id . unwrap ( ) ,
951+ our_node_id,
952952 payment_hash,
953953 amount_msat,
954954 purpose,
@@ -1131,12 +1131,12 @@ impl MaybeReadable for Event {
11311131 ( 0 , payment_hash, required) ,
11321132 ( 2 , purpose, ignorable) ,
11331133 ( 4 , amount_msat, required) ,
1134- ( 6 , our_node_id, required ) ,
1134+ ( 6 , our_node_id, option ) ,
11351135 } ) ;
11361136 if purpose. is_none ( ) { return Ok ( None ) ; }
11371137
11381138 Ok ( Some ( Event :: PaymentClaimed {
1139- our_node_id : our_node_id . unwrap ( ) ,
1139+ our_node_id,
11401140 payment_hash,
11411141 purpose : purpose. unwrap ( ) ,
11421142 amount_msat,
0 commit comments