diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml index d439ab6..f63178b 100644 --- a/protocol/Cargo.toml +++ b/protocol/Cargo.toml @@ -27,6 +27,7 @@ bitcoin_hashes = { version ="0.15.0", default-features = false } chacha20-poly1305 = { version = "0.1.1", default-features = false } [dev-dependencies] +# bitcoind version 26.0 includes support for BIP324's V2 protocol, but it is disabled by default. bitcoind = { package = "bitcoind-json-rpc-regtest", version = "0.3.0", default-features = false, features = ["26_0"] } hex = { package = "hex-conservative", version = "0.2.0" } diff --git a/protocol/tests/round_trips.rs b/protocol/tests/round_trips.rs index 356a02e..ab298f7 100644 --- a/protocol/tests/round_trips.rs +++ b/protocol/tests/round_trips.rs @@ -82,7 +82,9 @@ fn regtest_handshake() { let exe_path = bitcoind::exe_path().unwrap(); let mut conf = bitcoind::Conf::default(); - conf.args = vec!["-v2transport=1", "-regtest"]; + // Enable BIP324's V2 protocol. + conf.args.push("-v2transport=1"); + // Enable the P2P port for the test. conf.p2p = bitcoind::P2P::Yes; let bitcoind = bitcoind::BitcoinD::with_conf(exe_path, &conf).unwrap();