Update 2A_Setting_Up_a_Bitcoin-Core_VPS_by_Hand.md

This commit is contained in:
Shannon Appelcline 2017-02-23 12:54:09 -08:00 committed by GitHub
parent d4ff10d58c
commit 745f032311

View File

@ -252,9 +252,12 @@ alias bc="bitcoin-cli"
alias bd="bitcoind" alias bd="bitcoind"
alias btcinfo='bitcoin-cli getinfo | egrep "\"version\"|balance|blocks|connections|errors"' alias btcinfo='bitcoin-cli getinfo | egrep "\"version\"|balance|blocks|connections|errors"'
alias btcblock="echo \\\`bitcoin-cli getblockcount 2>&1\\\`/\\\`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null\\\`" alias btcblock="echo \\\`bitcoin-cli getblockcount 2>&1\\\`/\\\`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null\\\`"
EOF
``` ```
The only difference between the two is in the 'btcblock' line, which looks up the block count in different places for Mainnet and Testnet. The only difference between the two is in the 'btcblock' line, which looks up the block count in different places for Mainnet and Testnet.
_Warning: The btcblock alias will not work correctly if you try to place it in your .bash_profile by hand, rather than using the "cat" command as suggested. To enter it by hand, you need to adjust the number of backslashes (usually from three each to one each), so make sure you know what you're doing if you aren't entering the commands exactly as shown._
As usual, give your user permission: As usual, give your user permission:
``` ```