@@ -342,8 +342,8 @@ pub enum Event {
342
342
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
343
343
/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
344
344
PaymentReceived {
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 > ,
347
347
/// The hash for which the preimage should be handed to the ChannelManager. Note that LDK will
348
348
/// not stop you from registering duplicate payment hashes for inbound payments.
349
349
payment_hash : PaymentHash ,
@@ -368,8 +368,8 @@ pub enum Event {
368
368
///
369
369
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
370
370
PaymentClaimed {
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 > ,
373
373
/// The payment hash of the claimed payment. Note that LDK will not stop you from
374
374
/// registering duplicate payment hashes for inbound payments.
375
375
payment_hash : PaymentHash ,
@@ -743,7 +743,7 @@ impl Writeable for Event {
743
743
// We never write out FundingGenerationReady events as, upon disconnection, peers
744
744
// drop any channels which have not yet exchanged funding_signed.
745
745
} ,
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 } => {
747
747
1u8 . write ( writer) ?;
748
748
let mut payment_secret = None ;
749
749
let payment_preimage;
@@ -762,7 +762,7 @@ impl Writeable for Event {
762
762
( 4 , amount_msat, required) ,
763
763
( 6 , 0u64 , required) , // user_payment_id required for compatibility with 0.0.103 and earlier
764
764
( 8 , payment_preimage, option) ,
765
- ( 10 , our_node_id , option) ,
765
+ ( 11 , receiver_node_id , option) ,
766
766
} ) ;
767
767
} ,
768
768
& Event :: PaymentSent { ref payment_id, ref payment_preimage, ref payment_hash, ref fee_paid_msat } => {
@@ -859,13 +859,13 @@ impl Writeable for Event {
859
859
// We never write the OpenChannelRequest events as, upon disconnection, peers
860
860
// drop any channels which have not yet exchanged funding_signed.
861
861
} ,
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 } => {
863
863
19u8 . write ( writer) ?;
864
864
write_tlv_fields ! ( writer, {
865
865
( 0 , payment_hash, required) ,
866
866
( 2 , purpose, required) ,
867
867
( 4 , amount_msat, required) ,
868
- ( 6 , our_node_id , option) ,
868
+ ( 7 , receiver_node_id , option) ,
869
869
} ) ;
870
870
} ,
871
871
& Event :: ProbeSuccessful { ref payment_id, ref payment_hash, ref path } => {
@@ -929,15 +929,15 @@ impl MaybeReadable for Event {
929
929
let mut payment_preimage = None ;
930
930
let mut payment_secret = None ;
931
931
let mut amount_msat = 0 ;
932
- let mut our_node_id = None ;
932
+ let mut receiver_node_id = None ;
933
933
let mut _user_payment_id = None :: < u64 > ; // For compatibility with 0.0.103 and earlier
934
934
read_tlv_fields ! ( reader, {
935
935
( 0 , payment_hash, required) ,
936
936
( 2 , payment_secret, option) ,
937
937
( 4 , amount_msat, required) ,
938
938
( 6 , _user_payment_id, option) ,
939
939
( 8 , payment_preimage, option) ,
940
- ( 10 , our_node_id , option) ,
940
+ ( 11 , receiver_node_id , option) ,
941
941
} ) ;
942
942
let purpose = match payment_secret {
943
943
Some ( secret) => PaymentPurpose :: InvoicePayment {
@@ -948,7 +948,7 @@ impl MaybeReadable for Event {
948
948
None => return Err ( msgs:: DecodeError :: InvalidValue ) ,
949
949
} ;
950
950
Ok ( Some ( Event :: PaymentReceived {
951
- our_node_id ,
951
+ receiver_node_id ,
952
952
payment_hash,
953
953
amount_msat,
954
954
purpose,
@@ -1126,17 +1126,17 @@ impl MaybeReadable for Event {
1126
1126
let mut payment_hash = PaymentHash ( [ 0 ; 32 ] ) ;
1127
1127
let mut purpose = None ;
1128
1128
let mut amount_msat = 0 ;
1129
- let mut our_node_id = None ;
1129
+ let mut receiver_node_id = None ;
1130
1130
read_tlv_fields ! ( reader, {
1131
1131
( 0 , payment_hash, required) ,
1132
1132
( 2 , purpose, ignorable) ,
1133
1133
( 4 , amount_msat, required) ,
1134
- ( 6 , our_node_id , option) ,
1134
+ ( 7 , receiver_node_id , option) ,
1135
1135
} ) ;
1136
1136
if purpose. is_none ( ) { return Ok ( None ) ; }
1137
1137
1138
1138
Ok ( Some ( Event :: PaymentClaimed {
1139
- our_node_id ,
1139
+ receiver_node_id ,
1140
1140
payment_hash,
1141
1141
purpose : purpose. unwrap ( ) ,
1142
1142
amount_msat,
0 commit comments