projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Track the sender's skimmed fee in UpdateAddHTLC
[rust-lightning]
/
lightning
/
src
/
ln
/
channel.rs
diff --git
a/lightning/src/ln/channel.rs
b/lightning/src/ln/channel.rs
index e74dbe42a77d52d0ad65a5e4d179fb68f543ec29..e24fed12aa7985ce4a855f2ce65cc3a7e47c314b 100644
(file)
--- a/
lightning/src/ln/channel.rs
+++ b/
lightning/src/ln/channel.rs
@@
-3695,6
+3695,7
@@
impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
payment_hash: htlc.payment_hash,
cltv_expiry: htlc.cltv_expiry,
onion_routing_packet: (**onion_packet).clone(),
payment_hash: htlc.payment_hash,
cltv_expiry: htlc.cltv_expiry,
onion_routing_packet: (**onion_packet).clone(),
+ skimmed_fee_msat: None,
});
}
}
});
}
}
@@
-5145,6
+5146,7
@@
impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
payment_hash,
cltv_expiry,
onion_routing_packet,
payment_hash,
cltv_expiry,
onion_routing_packet,
+ skimmed_fee_msat: None,
};
self.context.next_holder_htlc_id += 1;
};
self.context.next_holder_htlc_id += 1;