From: Matt Corallo Date: Mon, 24 Oct 2022 18:12:30 +0000 (+0000) Subject: Do not export new anchors structs in `events.rs` without anchors X-Git-Tag: v0.0.112~1^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=a834a04e5c4eea2aa00650bd62ca7644b3f46c07;p=rust-lightning Do not export new anchors structs in `events.rs` without anchors This avoids adding unused, effectively-dummy public structs in `events.rs`. --- diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index f4490d68a..37a146c3d 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -205,6 +205,7 @@ impl_writeable_tlv_based_enum_upgradable!(HTLCDestination, } ); +#[cfg(anchors)] /// A descriptor used to sign for a commitment transaction's anchor output. #[derive(Clone, Debug)] pub struct AnchorDescriptor { @@ -224,6 +225,7 @@ pub struct AnchorDescriptor { pub outpoint: OutPoint, } +#[cfg(anchors)] /// Represents the different types of transactions, originating from LDK, to be bumped. #[derive(Clone, Debug)] pub enum BumpTransactionEvent {