Skip to content

Commit a834a04

Browse files
committed
Do not export new anchors structs in events.rs without anchors
This avoids adding unused, effectively-dummy public structs in `events.rs`.
1 parent a257906 commit a834a04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/util/events.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl_writeable_tlv_based_enum_upgradable!(HTLCDestination,
205205
}
206206
);
207207

208+
#[cfg(anchors)]
208209
/// A descriptor used to sign for a commitment transaction's anchor output.
209210
#[derive(Clone, Debug)]
210211
pub struct AnchorDescriptor {
@@ -224,6 +225,7 @@ pub struct AnchorDescriptor {
224225
pub outpoint: OutPoint,
225226
}
226227

228+
#[cfg(anchors)]
227229
/// Represents the different types of transactions, originating from LDK, to be bumped.
228230
#[derive(Clone, Debug)]
229231
pub enum BumpTransactionEvent {

0 commit comments

Comments
 (0)