Skip to content

Commit 6286863

Browse files
f add comments to helpers
1 parent 4a6cc85 commit 6286863

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/blinded_path/payment.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,21 @@ pub enum BlindedPaymentTlvs {
4747
}
4848

4949
impl BlindedPaymentTlvs {
50+
// The fee used to get from the current hop to the next hop in the path.
5051
fn fee_base_msat(&self) -> u32 {
5152
match self {
5253
Self::Forward { payment_relay, .. } => payment_relay.fee_base_msat,
5354
_ => 0,
5455
}
5556
}
57+
// The fee used to get from the current hop to the next hop in the path.
5658
fn fee_proportional_millionths(&self) -> u32 {
5759
match self {
5860
Self::Forward { payment_relay, .. } => payment_relay.fee_proportional_millionths,
5961
_ => 0,
6062
}
6163
}
64+
// The delta used to get from the current hop to the next hop in the path.
6265
fn cltv_expiry_delta(&self) -> u16 {
6366
match self {
6467
Self::Forward { payment_relay, .. } => payment_relay.cltv_expiry_delta,

0 commit comments

Comments
 (0)