Bitcoin full node and query server

Apr 26, 2019

View in context in the libbitcoin Slack #general mirror.

A
adys01:17
Ok I have only one file now on my machine; BX_CONFIG=/home/adys/Sources/code-demos/setup/bx_config_files/bx.cfg bx fetch-height -> 573247 - still mainnet BX_CONFIG=/home/adys/Sources/code-demos/setup/bx_config_files/bx.cfg bx fetch-height -> 1512312 - testnet Its ignoring and taking setting from default values and not from cfg file.
2 replies · neillm · last Apr 26, 2019
neillm02:35
Did you use export BX_CONFIG=/path/to/bx.cfg, assuming a bash or bash-like shell? If not, it doesn't have the effect you're looking for.
neillm02:36
Instead of the quick test I suggested of doing ls -al $BX_CONFIG, a better test would have been to try env | grep BX_CONFIG. If you don't export it, that will return nothing.