projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix anchor output matching
[rust-lightning]
/
lightning
/
src
/
ln
/
chan_utils.rs
diff --git
a/lightning/src/ln/chan_utils.rs
b/lightning/src/ln/chan_utils.rs
index 968de7b43b5e079d2dac2f522350900680e100ee..7521da01f97496932c357e0c0f974e37eee3b2bc 100644
(file)
--- a/
lightning/src/ln/chan_utils.rs
+++ b/
lightning/src/ln/chan_utils.rs
@@
-982,7
+982,7
@@
pub struct DirectedChannelTransactionParameters<'a> {
impl<'a> DirectedChannelTransactionParameters<'a> {
/// Get the channel pubkeys for the broadcaster
impl<'a> DirectedChannelTransactionParameters<'a> {
/// Get the channel pubkeys for the broadcaster
- pub fn broadcaster_pubkeys(&self) -> &ChannelPublicKeys {
+ pub fn broadcaster_pubkeys(&self) -> &
'a
ChannelPublicKeys {
if self.holder_is_broadcaster {
&self.inner.holder_pubkeys
} else {
if self.holder_is_broadcaster {
&self.inner.holder_pubkeys
} else {
@@
-991,7
+991,7
@@
impl<'a> DirectedChannelTransactionParameters<'a> {
}
/// Get the channel pubkeys for the countersignatory
}
/// Get the channel pubkeys for the countersignatory
- pub fn countersignatory_pubkeys(&self) -> &ChannelPublicKeys {
+ pub fn countersignatory_pubkeys(&self) -> &
'a
ChannelPublicKeys {
if self.holder_is_broadcaster {
&self.inner.counterparty_parameters.as_ref().unwrap().pubkeys
} else {
if self.holder_is_broadcaster {
&self.inner.counterparty_parameters.as_ref().unwrap().pubkeys
} else {
@@
-1020,7
+1020,7
@@
impl<'a> DirectedChannelTransactionParameters<'a> {
}
/// Whether to use anchors for this channel
}
/// Whether to use anchors for this channel
- pub fn channel_type_features(&self) -> &ChannelTypeFeatures {
+ pub fn channel_type_features(&self) -> &
'a
ChannelTypeFeatures {
&self.inner.channel_type_features
}
}
&self.inner.channel_type_features
}
}
@@
-1279,7
+1279,7
@@
impl<'a> Deref for TrustedClosingTransaction<'a> {
impl<'a> TrustedClosingTransaction<'a> {
/// The pre-built Bitcoin commitment transaction
impl<'a> TrustedClosingTransaction<'a> {
/// The pre-built Bitcoin commitment transaction
- pub fn built_transaction(&self) -> &Transaction {
+ pub fn built_transaction(&self) -> &
'a
Transaction {
&self.inner.built
}
&self.inner.built
}
@@
-1668,17
+1668,17
@@
impl<'a> TrustedCommitmentTransaction<'a> {
}
/// The pre-built Bitcoin commitment transaction
}
/// The pre-built Bitcoin commitment transaction
- pub fn built_transaction(&self) -> &BuiltCommitmentTransaction {
+ pub fn built_transaction(&self) -> &
'a
BuiltCommitmentTransaction {
&self.inner.built
}
/// The pre-calculated transaction creation public keys.
&self.inner.built
}
/// The pre-calculated transaction creation public keys.
- pub fn keys(&self) -> &TxCreationKeys {
+ pub fn keys(&self) -> &
'a
TxCreationKeys {
&self.inner.keys
}
/// Should anchors be used.
&self.inner.keys
}
/// Should anchors be used.
- pub fn channel_type_features(&self) -> &ChannelTypeFeatures {
+ pub fn channel_type_features(&self) -> &
'a
ChannelTypeFeatures {
&self.inner.channel_type_features
}
&self.inner.channel_type_features
}