From: kanna Date: Thu, 18 Feb 2021 14:11:40 +0000 (+0900) Subject: Use 127.0.0.1 instead of localhost X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/enum.VerifyOnly.html?a=commitdiff_plain;h=ed462e5785febbcc9d4b7f3e391323b1a3027206;p=bitcoindevkit.org 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 --- 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.