projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2361 from arik-so/2023-06-anchor-channel-type-features
[rust-lightning]
/
lightning
/
src
/
chain
/
onchaintx.rs
diff --git
a/lightning/src/chain/onchaintx.rs
b/lightning/src/chain/onchaintx.rs
index 58ad449334b98db717880ea915c1b571087c6726..42cfb91bd0a87c1c2ebad8d6eac5d3a151160159 100644
(file)
--- a/
lightning/src/chain/onchaintx.rs
+++ b/
lightning/src/chain/onchaintx.rs
@@
-52,6
+52,7
@@
use core::ops::Deref;
use core::mem::replace;
#[cfg(anchors)]
use core::mem::swap;
use core::mem::replace;
#[cfg(anchors)]
use core::mem::swap;
+use crate::ln::features::ChannelTypeFeatures;
const MAX_ALLOC_SIZE: usize = 64*1024;
const MAX_ALLOC_SIZE: usize = 64*1024;
@@
-1215,8
+1216,8
@@
impl<ChannelSigner: WriteableEcdsaChannelSigner> OnchainTxHandler<ChannelSigner>
.or_else(|| self.prev_holder_commitment.as_ref().map(|c| find_htlc(c)).flatten())
}
.or_else(|| self.prev_holder_commitment.as_ref().map(|c| find_htlc(c)).flatten())
}
- pub(crate) fn
opt_anchors(&self) -> bool
{
- self.channel_transaction_parameters.opt_anchors.is_some()
+ pub(crate) fn
channel_type_features(&self) -> &ChannelTypeFeatures
{
+ &self.channel_transaction_parameters.channel_type_features
}
#[cfg(any(test,feature = "unsafe_revoked_tx_signing"))]
}
#[cfg(any(test,feature = "unsafe_revoked_tx_signing"))]