projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up `compute_fees` and add a saturating variant
[rust-lightning]
/
lightning
/
src
/
offers
/
refund.rs
diff --git
a/lightning/src/offers/refund.rs
b/lightning/src/offers/refund.rs
index 4e553cb3e6d47b0aac3aa374c47c238728c67528..d3798463b440ed6c0bead3034392671aa57b5555 100644
(file)
--- a/
lightning/src/offers/refund.rs
+++ b/
lightning/src/offers/refund.rs
@@
-102,8
+102,8
@@
pub struct RefundBuilder {
}
impl RefundBuilder {
}
impl RefundBuilder {
- /// Creates a new builder for a refund using the [`Refund::payer_id`] for
signing invoices. Use
- ///
a different pubkey per refund to avoid correlating refunds
.
+ /// Creates a new builder for a refund using the [`Refund::payer_id`] for
the public node id to
+ ///
send to if no [`Refund::paths`] are set. Otherwise, it may be a transient pubkey
.
///
/// Additionally, sets the required [`Refund::description`], [`Refund::metadata`], and
/// [`Refund::amount_msats`].
///
/// Additionally, sets the required [`Refund::description`], [`Refund::metadata`], and
/// [`Refund::amount_msats`].
@@
-285,7
+285,10
@@
impl Refund {
&self.contents.features
}
&self.contents.features
}
- /// A possibly transient pubkey used to sign the refund.
+ /// A public node id to send to in the case where there are no [`paths`]. Otherwise, a possibly
+ /// transient pubkey.
+ ///
+ /// [`paths`]: Self::paths
pub fn payer_id(&self) -> PublicKey {
self.contents.payer_id
}
pub fn payer_id(&self) -> PublicKey {
self.contents.payer_id
}