Skip to content

Commit cd4a541

Browse files
committed
run-bitcoind: Fix startup of Core nodes
Core v28 introduced changes making node startup fail if bind fails. We fixed this in `node` in #46 but in `run-bitcoind.sh` we still use `-port`. This didn't cause any problems because we only pass the arg to one of the two nodes so port 18445 was available. When we try to add support for v29 things break. Jamil was experiencing this problem (I think) while running v28 nodes but I don't know why. Use `-bind` instead of `-port`.
1 parent 7b2b017 commit cd4a541

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/run-bitcoind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ run_bitcoind() {
186186
echo "Starting bitcoind v${version_number} (alias: ${version})..."
187187
"$bitcoind" -regtest $fallback_fee_arg $block_filter_arg \
188188
-datadir="${test_dir}/1" \
189-
-port="${version_id}48" \
189+
-bind="127.0.0.1:${version_id}48" \
190190
-server=0 \
191191
-printtoconsole=0 &
192192

node/contrib/extra_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ main() {
3232

3333
# But only run tests for the latest version. This is ok because we are mainly checking
3434
# MSRV and docs with this script. Integration test will check every Core version.
35-
$cargo test --features=download,28_0
35+
$cargo test --features=download,29_0
3636
}
3737

3838
#

0 commit comments

Comments
 (0)