Last active
August 29, 2015 14:02
-
-
Save manan19/5f3795fc3ff114c1e2a2 to your computer and use it in GitHub Desktop.
Toggle between Bitcoin livenet and testnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bnt() { | |
sed -if 's/^testnet=0/testnet=1/; | |
t end; | |
s/^testnet=1/testnet=0/; | |
:end;' ~/Library/Application\ Support/Bitcoin/bitcoin.conf | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need to restart Bitcoin-Qt for it to take effect (of course!)