@@ -250,7 +250,7 @@ pub enum Event {
250250/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards 
251251PaymentReceived  { 
252252		/// The node that recieved the payment, ie our node 
253- our_node_id :  PublicKey , 
253+ our_node_id :  Option < PublicKey > , 
254254		/// The hash for which the preimage should be handed to the ChannelManager. Note that LDK will 
255255/// not stop you from registering duplicate payment hashes for inbound payments. 
256256payment_hash :  PaymentHash , 
@@ -276,7 +276,7 @@ pub enum Event {
276276/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds 
277277PaymentClaimed  { 
278278		/// The node that recieved the payment, ie our node 
279- our_node_id :  PublicKey , 
279+ our_node_id :  Option < PublicKey > , 
280280		/// The payment hash of the claimed payment. Note that LDK will not stop you from 
281281/// registering duplicate payment hashes for inbound payments. 
282282payment_hash :  PaymentHash , 
@@ -635,7 +635,7 @@ impl Writeable for Event {
635635					( 4 ,  amount_msat,  required) , 
636636					( 6 ,  0u64 ,  required) ,  // user_payment_id required for compatibility with 0.0.103 and earlier 
637637					( 8 ,  payment_preimage,  option) , 
638- 					( 10 ,  our_node_id,  required ) , 
638+ 					( 10 ,  our_node_id,  option ) , 
639639				} ) ; 
640640			} , 
641641			& Event :: PaymentSent  {  ref  payment_id,  ref  payment_preimage,  ref  payment_hash,  ref  fee_paid_msat }  => { 
@@ -732,7 +732,7 @@ impl Writeable for Event {
732732					( 0 ,  payment_hash,  required) , 
733733					( 2 ,  purpose,  required) , 
734734					( 4 ,  amount_msat,  required) , 
735- 					( 6 ,  our_node_id,  required ) , 
735+ 					( 6 ,  our_node_id,  option ) , 
736736				} ) ; 
737737			} , 
738738			& Event :: ProbeSuccessful  {  ref  payment_id,  ref  payment_hash,  ref  path }  => { 
@@ -797,7 +797,7 @@ impl MaybeReadable for Event {
797797						None  => return  Err ( msgs:: DecodeError :: InvalidValue ) , 
798798					} ; 
799799					Ok ( Some ( Event :: PaymentReceived  { 
800- 						our_node_id :  our_node_id . unwrap ( ) , 
800+ 						our_node_id, 
801801						payment_hash, 
802802						amount_msat, 
803803						purpose, 
@@ -972,12 +972,12 @@ impl MaybeReadable for Event {
972972						( 0 ,  payment_hash,  required) , 
973973						( 2 ,  purpose,  ignorable) , 
974974						( 4 ,  amount_msat,  required) , 
975- 						( 6 ,  our_node_id,  required ) , 
975+ 						( 6 ,  our_node_id,  option ) , 
976976					} ) ; 
977977					if  purpose. is_none ( )  {  return  Ok ( None ) ;  } 
978978
979979					Ok ( Some ( Event :: PaymentClaimed  { 
980- 						our_node_id :  our_node_id . unwrap ( ) , 
980+ 						our_node_id, 
981981						payment_hash, 
982982						purpose :  purpose. unwrap ( ) , 
983983						amount_msat, 
0 commit comments