-
Notifications
You must be signed in to change notification settings - Fork 176
Configuration Settings
Not all BX commands use configuration settings. However all commands process the configuration file if its path is specified.
The path to the configuration settings file is specified by the --config
command line option, the BX_CONFIG
environment variable, or by default as follows:
- Linux/OSX (prefix):
<prefix>/etc/libbitcoin/bx.cfg
- Linux/OSX (default):
/usr/local/etc/libbitcoin/bx.cfg
- Windows:
%ProgramData%\libbitcoin\bx.cfg
The Windows directory is hidden by default. If the specified file is not found default values are loaded. If the file contains invalid settings an error is returned via STDERR. If any setting is not specified its default is loaded.
BX uses libbitcoin's wrappers over Boost's program_options library to bind configuration settings. The implementation supports a two level hierarchy of settings using "sections" to group settings, similar to an .ini
file.
For convenience, the bx.cfg file is populated with all default settings values.
The settings command outputs all settings and values for the configuration file in use.
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands