Skip to content

Commit 14c3c1a

Browse files
committed
Added -testnet to bitcoin-cli command because we are supposed to use testnet on the course
1 parent ff4d516 commit 14c3c1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

03_1_Verifying_Your_Bitcoin_Setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ You can do this by looking at a blocknet explorer, such as [the Blockcypher Test
4646
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:
4747
```
4848
$ cat >> ~/.bash_profile << EOF
49-
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\\\`"
49+
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\\\`"
5050
EOF
5151
$ source .bash_profile
5252
$ btcblock

0 commit comments

Comments
 (0)