Skip to content

Commit 8bfdc74

Browse files
committed
Enable option_simple_close feature by default
.. although behind a `cfg` gate for now
1 parent c99c951 commit 8bfdc74

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ check-cfg = [
6767
"cfg(require_route_graph_test)",
6868
"cfg(splicing)",
6969
"cfg(async_payments)",
70+
"cfg(simple_close)",
7071
]

ci/ci-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,6 @@ RUSTFLAGS="--cfg=splicing" cargo test --verbose --color always -p lightning
155155
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
156156
RUSTFLAGS="--cfg=async_payments" cargo test --verbose --color always -p lightning
157157
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
158+
RUSTFLAGS="--cfg=simple_close" cargo test --verbose --color always -p lightning
159+
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
158160
RUSTFLAGS="--cfg=lsps1_service" cargo test --verbose --color always -p lightning-liquidity

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13395,6 +13395,8 @@ pub fn provided_init_features(config: &UserConfig) -> InitFeatures {
1339513395
features.set_zero_conf_optional();
1339613396
features.set_route_blinding_optional();
1339713397
features.set_provide_storage_optional();
13398+
#[cfg(simple_close)]
13399+
features.set_simple_close_optional();
1339813400
if config.channel_handshake_config.negotiate_anchors_zero_fee_htlc_tx {
1339913401
features.set_anchors_zero_fee_htlc_tx_optional();
1340013402
}

0 commit comments

Comments
 (0)