Skip to content

Commit

Permalink
Use Anchor channels in CLN integration test
Browse files Browse the repository at this point in the history
.. 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.
  • Loading branch information
tnull committed Feb 20, 2024
1 parent 4daeedf commit 1510751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose-cln.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ services:
"--bitcoin-rpcuser=user",
"--bitcoin-rpcpassword=pass",
"--regtest",
"--experimental-anchors",
]
ports:
- "19846:19846"
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_tests_cln.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod common;
use ldk_node::bitcoin::secp256k1::PublicKey;
use ldk_node::bitcoin::Amount;
use ldk_node::lightning::ln::msgs::SocketAddress;
use ldk_node::{Builder, Event};
use ldk_node::{Builder, ChannelType, Event};

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

// Send a payment to CLN
let mut rng = thread_rng();
Expand Down

0 comments on commit 1510751

Please sign in to comment.