libbitcoin / libbitcoin-explorer

Bitcoin Command Line Tool
Other
601 stars 177 forks source link

change from default for mainnet to testnet #671

Closed tobben1998 closed 4 years ago

tobben1998 commented 4 years ago

Can anyone help with changing default settings from mainnet to testnet, so I do not always have to use -c testnet.cfg on every thing I do?

thecodefactory commented 4 years ago

Edit libbitcoin-explorer/data/bx.cfg and update all of the settings that show the proper defaults for testnet (see bx.cfg for reference) and save that file to /some/path/bx.cfg. After that, export BX_CONFIG=/some/path/bx.cfg (or set the env var appropriately for your shell) and then use bx as normal.