@@ -342,8 +342,8 @@ pub enum Event {
342342/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds 
343343/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards 
344344PaymentReceived  { 
345- 		/// The node that recieved  the payment, ie our node  
346- our_node_id :  Option < PublicKey > , 
345+ 		/// The node that received  the payment 
346+ receiver_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. 
349349payment_hash :  PaymentHash , 
@@ -368,8 +368,8 @@ pub enum Event {
368368/// 
369369/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds 
370370PaymentClaimed  { 
371- 		/// The node that recieved  the payment, ie our node  
372- our_node_id :  Option < PublicKey > , 
371+ 		/// The node that received  the payment 
372+ receiver_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. 
375375payment_hash :  PaymentHash , 
@@ -743,7 +743,7 @@ impl Writeable for Event {
743743				// We never write out FundingGenerationReady events as, upon disconnection, peers 
744744				// drop any channels which have not yet exchanged funding_signed. 
745745			} , 
746- 			& Event :: PaymentReceived  {  ref  payment_hash,  ref  amount_msat,  ref  purpose,  our_node_id  }  => { 
746+ 			& Event :: PaymentReceived  {  ref  payment_hash,  ref  amount_msat,  ref  purpose,  receiver_node_id  }  => { 
747747				1u8 . write ( writer) ?; 
748748				let  mut  payment_secret = None ; 
749749				let  payment_preimage; 
@@ -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 ,  option) , 
765+ 					( 11 ,  receiver_node_id ,  option) , 
766766				} ) ; 
767767			} , 
768768			& Event :: PaymentSent  {  ref  payment_id,  ref  payment_preimage,  ref  payment_hash,  ref  fee_paid_msat }  => { 
@@ -859,13 +859,13 @@ impl Writeable for Event {
859859				// We never write the OpenChannelRequest events as, upon disconnection, peers 
860860				// drop any channels which have not yet exchanged funding_signed. 
861861			} , 
862- 			& Event :: PaymentClaimed  {  ref  payment_hash,  ref  amount_msat,  ref  purpose,  our_node_id  }  => { 
862+ 			& Event :: PaymentClaimed  {  ref  payment_hash,  ref  amount_msat,  ref  purpose,  receiver_node_id  }  => { 
863863				19u8 . write ( writer) ?; 
864864				write_tlv_fields ! ( writer,  { 
865865					( 0 ,  payment_hash,  required) , 
866866					( 2 ,  purpose,  required) , 
867867					( 4 ,  amount_msat,  required) , 
868- 					( 6 ,  our_node_id ,  option) , 
868+ 					( 7 ,  receiver_node_id ,  option) , 
869869				} ) ; 
870870			} , 
871871			& Event :: ProbeSuccessful  {  ref  payment_id,  ref  payment_hash,  ref  path }  => { 
@@ -929,15 +929,15 @@ impl MaybeReadable for Event {
929929					let  mut  payment_preimage = None ; 
930930					let  mut  payment_secret = None ; 
931931					let  mut  amount_msat = 0 ; 
932- 					let  mut  our_node_id  = None ; 
932+ 					let  mut  receiver_node_id  = None ; 
933933					let  mut  _user_payment_id = None :: < u64 > ;  // For compatibility with 0.0.103 and earlier 
934934					read_tlv_fields ! ( reader,  { 
935935						( 0 ,  payment_hash,  required) , 
936936						( 2 ,  payment_secret,  option) , 
937937						( 4 ,  amount_msat,  required) , 
938938						( 6 ,  _user_payment_id,  option) , 
939939						( 8 ,  payment_preimage,  option) , 
940- 						( 10 ,  our_node_id ,  option) , 
940+ 						( 11 ,  receiver_node_id ,  option) , 
941941					} ) ; 
942942					let  purpose = match  payment_secret { 
943943						Some ( secret)  => PaymentPurpose :: InvoicePayment  { 
@@ -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 , 
951+ 						receiver_node_id , 
952952						payment_hash, 
953953						amount_msat, 
954954						purpose, 
@@ -1126,17 +1126,17 @@ impl MaybeReadable for Event {
11261126					let  mut  payment_hash = PaymentHash ( [ 0 ;  32 ] ) ; 
11271127					let  mut  purpose = None ; 
11281128					let  mut  amount_msat = 0 ; 
1129- 					let  mut  our_node_id  = None ; 
1129+ 					let  mut  receiver_node_id  = None ; 
11301130					read_tlv_fields ! ( reader,  { 
11311131						( 0 ,  payment_hash,  required) , 
11321132						( 2 ,  purpose,  ignorable) , 
11331133						( 4 ,  amount_msat,  required) , 
1134- 						( 6 ,  our_node_id ,  option) , 
1134+ 						( 7 ,  receiver_node_id ,  option) , 
11351135					} ) ; 
11361136					if  purpose. is_none ( )  {  return  Ok ( None ) ;  } 
11371137
11381138					Ok ( Some ( Event :: PaymentClaimed  { 
1139- 						our_node_id , 
1139+ 						receiver_node_id , 
11401140						payment_hash, 
11411141						purpose :  purpose. unwrap ( ) , 
11421142						amount_msat, 
0 commit comments