@@ -249,8 +249,8 @@ pub enum Event {
249
249
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
250
250
/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
251
251
PaymentReceived {
252
- /// The node that recieved the payment, ie our node
253
- our_node_id : Option < PublicKey > ,
252
+ /// The node that received the payment
253
+ receiver_node_id : Option < PublicKey > ,
254
254
/// The hash for which the preimage should be handed to the ChannelManager. Note that LDK will
255
255
/// not stop you from registering duplicate payment hashes for inbound payments.
256
256
payment_hash : PaymentHash ,
@@ -275,8 +275,8 @@ pub enum Event {
275
275
///
276
276
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
277
277
PaymentClaimed {
278
- /// The node that recieved the payment, ie our node
279
- our_node_id : Option < PublicKey > ,
278
+ /// The node that received the payment
279
+ receiver_node_id : Option < PublicKey > ,
280
280
/// The payment hash of the claimed payment. Note that LDK will not stop you from
281
281
/// registering duplicate payment hashes for inbound payments.
282
282
payment_hash : PaymentHash ,
@@ -616,7 +616,7 @@ impl Writeable for Event {
616
616
// We never write out FundingGenerationReady events as, upon disconnection, peers
617
617
// drop any channels which have not yet exchanged funding_signed.
618
618
} ,
619
- & Event :: PaymentReceived { ref payment_hash, ref amount_msat, ref purpose, our_node_id } => {
619
+ & Event :: PaymentReceived { ref payment_hash, ref amount_msat, ref purpose, receiver_node_id } => {
620
620
1u8 . write ( writer) ?;
621
621
let mut payment_secret = None ;
622
622
let payment_preimage;
@@ -635,7 +635,7 @@ impl Writeable for Event {
635
635
( 4 , amount_msat, required) ,
636
636
( 6 , 0u64 , required) , // user_payment_id required for compatibility with 0.0.103 and earlier
637
637
( 8 , payment_preimage, option) ,
638
- ( 10 , our_node_id , option) ,
638
+ ( 9 , receiver_node_id , option) ,
639
639
} ) ;
640
640
} ,
641
641
& Event :: PaymentSent { ref payment_id, ref payment_preimage, ref payment_hash, ref fee_paid_msat } => {
@@ -726,13 +726,13 @@ impl Writeable for Event {
726
726
// We never write the OpenChannelRequest events as, upon disconnection, peers
727
727
// drop any channels which have not yet exchanged funding_signed.
728
728
} ,
729
- & Event :: PaymentClaimed { ref payment_hash, ref amount_msat, ref purpose, our_node_id } => {
729
+ & Event :: PaymentClaimed { ref payment_hash, ref amount_msat, ref purpose, receiver_node_id } => {
730
730
19u8 . write ( writer) ?;
731
731
write_tlv_fields ! ( writer, {
732
732
( 0 , payment_hash, required) ,
733
733
( 2 , purpose, required) ,
734
734
( 4 , amount_msat, required) ,
735
- ( 6 , our_node_id , option) ,
735
+ ( 7 , receiver_node_id , option) ,
736
736
} ) ;
737
737
} ,
738
738
& Event :: ProbeSuccessful { ref payment_id, ref payment_hash, ref path } => {
@@ -778,15 +778,15 @@ impl MaybeReadable for Event {
778
778
let mut payment_preimage = None ;
779
779
let mut payment_secret = None ;
780
780
let mut amount_msat = 0 ;
781
- let mut our_node_id = None ;
781
+ let mut receiver_node_id = None ;
782
782
let mut _user_payment_id = None :: < u64 > ; // For compatibility with 0.0.103 and earlier
783
783
read_tlv_fields ! ( reader, {
784
784
( 0 , payment_hash, required) ,
785
785
( 2 , payment_secret, option) ,
786
786
( 4 , amount_msat, required) ,
787
787
( 6 , _user_payment_id, option) ,
788
788
( 8 , payment_preimage, option) ,
789
- ( 10 , our_node_id , option) ,
789
+ ( 11 , receiver_node_id , option) ,
790
790
} ) ;
791
791
let purpose = match payment_secret {
792
792
Some ( secret) => PaymentPurpose :: InvoicePayment {
@@ -797,7 +797,7 @@ impl MaybeReadable for Event {
797
797
None => return Err ( msgs:: DecodeError :: InvalidValue ) ,
798
798
} ;
799
799
Ok ( Some ( Event :: PaymentReceived {
800
- our_node_id ,
800
+ receiver_node_id ,
801
801
payment_hash,
802
802
amount_msat,
803
803
purpose,
@@ -967,17 +967,17 @@ impl MaybeReadable for Event {
967
967
let mut payment_hash = PaymentHash ( [ 0 ; 32 ] ) ;
968
968
let mut purpose = None ;
969
969
let mut amount_msat = 0 ;
970
- let mut our_node_id = None ;
970
+ let mut receiver_node_id = None ;
971
971
read_tlv_fields ! ( reader, {
972
972
( 0 , payment_hash, required) ,
973
973
( 2 , purpose, ignorable) ,
974
974
( 4 , amount_msat, required) ,
975
- ( 6 , our_node_id , option) ,
975
+ ( 7 , receiver_node_id , option) ,
976
976
} ) ;
977
977
if purpose. is_none ( ) { return Ok ( None ) ; }
978
978
979
979
Ok ( Some ( Event :: PaymentClaimed {
980
- our_node_id ,
980
+ receiver_node_id ,
981
981
payment_hash,
982
982
purpose : purpose. unwrap ( ) ,
983
983
amount_msat,
0 commit comments