From 14c3c1a828869f2b5437c73d8b740426ea5b107f Mon Sep 17 00:00:00 2001 From: joachim Date: Tue, 18 Jan 2022 08:51:59 +0100 Subject: [PATCH] Added -testnet to bitcoin-cli command because we are supposed to use testnet on the course --- 03_1_Verifying_Your_Bitcoin_Setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03_1_Verifying_Your_Bitcoin_Setup.md b/03_1_Verifying_Your_Bitcoin_Setup.md index 6646b3c..f4f0bd0 100644 --- a/03_1_Verifying_Your_Bitcoin_Setup.md +++ b/03_1_Verifying_Your_Bitcoin_Setup.md @@ -46,7 +46,7 @@ You can do this by looking at a blocknet explorer, such as [the Blockcypher Test If you'd like an alias to look at everything at once, the following currently works for Testnet, but may disappear at some time in the future: ``` $ cat >> ~/.bash_profile << EOF -alias btcblock="echo \\\`bitcoin-cli getblockcount 2>&1\\\`/\\\`wget -O - https://blockstream.info/testnet/api/blocks/tip/height 2> /dev/null | cut -d : -f2 | rev | cut -c 1- | rev\\\`" +alias btcblock="echo \\\`bitcoin-cli -testnet getblockcount 2>&1\\\`/\\\`wget -O - https://blockstream.info/testnet/api/blocks/tip/height 2> /dev/null | cut -d : -f2 | rev | cut -c 1- | rev\\\`" EOF $ source .bash_profile $ btcblock