Skip to content

Instantly share code, notes, and snippets.

@manan19
Last active August 29, 2015 14:02
Show Gist options
  • Save manan19/5f3795fc3ff114c1e2a2 to your computer and use it in GitHub Desktop.
Save manan19/5f3795fc3ff114c1e2a2 to your computer and use it in GitHub Desktop.
Toggle between Bitcoin livenet and testnet
function bnt() {
sed -if 's/^testnet=0/testnet=1/;
t end;
s/^testnet=1/testnet=0/;
:end;' ~/Library/Application\ Support/Bitcoin/bitcoin.conf
}
@manan19
Copy link
Author

manan19 commented Jun 20, 2014

You'll need to restart Bitcoin-Qt for it to take effect (of course!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment