]> Untitled Git - bitcoindevkit.org/commitdiff
Use 127.0.0.1 instead of localhost
authorkanna <kanna@protonmail.ch>
Thu, 18 Feb 2021 14:11:40 +0000 (23:11 +0900)
committerkanna <uenokan@hey.com>
Sun, 21 Feb 2021 10:50:31 +0000 (19:50 +0900)
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

index c7ef600a4b07a95da9afc930ee68a5580f1e3b26..723d09d1dc3b83b827e2b1b3f301e66fc06a5b03 100644 (file)
@@ -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.