Skip to content

Commit

Permalink
Test push
Browse files Browse the repository at this point in the history
  • Loading branch information
nyonson committed Nov 22, 2024
1 parent c94cfd4 commit c77d12c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down
4 changes: 3 additions & 1 deletion protocol/tests/round_trips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit c77d12c

Please sign in to comment.