From ed462e5785febbcc9d4b7f3e391323b1a3027206 Mon Sep 17 00:00:00 2001 From: kanna Date: Thu, 18 Feb 2021 23:11:40 +0900 Subject: [PATCH] Use 127.0.0.1 instead of localhost bdk-cli failed to parse `localhost` properly. https://discord.com/channels/753336465005608961/753367451319926827/811954551049027654 Replace all localhost to 127.0.0.1 --- content/bdk-cli/regtest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/bdk-cli/regtest.md b/content/bdk-cli/regtest.md index c7ef600a4b..723d09d1dc 100644 --- a/content/bdk-cli/regtest.md +++ b/content/bdk-cli/regtest.md @@ -25,7 +25,7 @@ electrs -vv --timestamp --db-dir /tmp/electrs-db --electrum-rpc-addr="127.0.0.1: on macOS you should change the cookie-file to `$HOME/Library/Application Support/Bitcoin/regtest/.cookie`. -This will start the Electrum server on port 50001. You can then add the `-n regtest -s localhost:50001` to the `bdk-cli` commands to switch to the local regtest. +This will start the Electrum server on port 50001. You can then add the `-n regtest -s 127.0.0.1:50001` to the `bdk-cli` commands to switch to the local regtest. ## Troubleshooting @@ -49,4 +49,4 @@ $ nigiri start This will start electrum RPC interface on port `51401`, the REST interface on `3000` and the esplora UI on `5000` (You can visit with the browser and look for blocks, addresses and transactions) -You can then add the `-n regtest -s localhost:51401` to the `bdk-cli` commands to switch to the local regtest. +You can then add the `-n regtest -s 127.0.0.1:51401` to the `bdk-cli` commands to switch to the local regtest. -- 2.49.0