Skip to content

Commit 1510751

Browse files
committed
Use Anchor channels in CLN integration test
.. because they will be the new default. Note the upcoming CLN 24.02 release will make Anchors default, too, but for now we have to set the `experimental-anchors` config option.
1 parent 4daeedf commit 1510751

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker-compose-cln.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ services:
6363
"--bitcoin-rpcuser=user",
6464
"--bitcoin-rpcpassword=pass",
6565
"--regtest",
66+
"--experimental-anchors",
6667
]
6768
ports:
6869
- "19846:19846"

tests/integration_tests_cln.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod common;
55
use ldk_node::bitcoin::secp256k1::PublicKey;
66
use ldk_node::bitcoin::Amount;
77
use ldk_node::lightning::ln::msgs::SocketAddress;
8-
use ldk_node::{Builder, Event};
8+
use ldk_node::{Builder, ChannelType, Event};
99

1010
use clightningrpc::lightningrpc::LightningRPC;
1111
use clightningrpc::responses::NetworkAddress;
@@ -89,6 +89,7 @@ fn test_cln() {
8989
common::wait_for_tx(&electrs_client, funding_txo.txid);
9090
common::generate_blocks_and_wait(&bitcoind_client, &electrs_client, 6);
9191
let channel_id = common::expect_channel_ready_event!(node, cln_node_id);
92+
assert_eq!(node.list_channels().first().unwrap().channel_type, Some(ChannelType::Anchors));
9293

9394
// Send a payment to CLN
9495
let mut rng = thread_rng();

0 commit comments

Comments
 (0)