@@ -135,10 +135,13 @@ You can set the commonly used values, such as your hotkey and coldkey names, the
135
135
The default location of the config file is: ` ~/.bittensor/config.yml ` . An example of a ` config.yml ` is shown below:
136
136
137
137
``` yaml
138
- chain : ws://127.0.0.1:9945
139
138
network : local
140
- no_cache : False
141
- wallet_hotkey : hotkey-user1
139
+ use_cache : true
140
+ dashboard_path : null
141
+ disk_cache : false
142
+ rate_tolerance : null
143
+ safe_staking : true
144
+ wallet_hotkey : default
142
145
wallet_name : coldkey-user1
143
146
wallet_path : ~/.bittensor/wallets
144
147
metagraph_cols :
@@ -165,6 +168,29 @@ metagraph_cols:
165
168
btcli config --help
166
169
```
167
170
171
+ ### ENV VARS
172
+ BTCLI accepts a few environment variables that can alter how it works:
173
+ - USE_TORCH (default 0): If set to 1, will use torch instead of numpy
174
+ - DISK_CACHE (default 0, also settable in config): If set to 1 (or set in config), will use disk caching for various safe-cachable substrate
175
+ calls (such as block number to block hash mapping), which can speed up subsequent calls.
176
+ - BTCLI_CONFIG_PATH (default ` ~/.bittensor/config.yml ` ): This will set the config file location, creating if it does not exist.
177
+ - BTCLI_DEBUG_FILE (default ` ~/.bittensor/debug.txt ` ): The file stores the most recent's command's debug log.
178
+
179
+ ---
180
+
181
+ ## Debugging
182
+ BTCLI will store a debug log for every command run. This file is overwritten for each new command run. The default location
183
+ of this file is ` ~/.bittensor/debug.txt ` and can be set with the ` BTCLI_DEBUG_FILE ` env var (see above section).
184
+
185
+ The debug log will ** NOT** contain any sensitive data (private keys), and is intended to be sent to the developers
186
+ for debugging. This file contains basic information about the command being run, the config, and the back and forth of requests and responses
187
+ to and from the chain.
188
+
189
+ If you encounter an issue, and would like to save the file somewhere it won't be overwritten, run ` btcli --debug ` ,
190
+ and set the save file location. We recommend doing this first before anything, and then starting your debugging with
191
+ us on our [ Discord] ( https://discord.gg/bittensor ) , or by opening an issue on [ GitHub] ( https://github.com/opentensor/btcli/issues/new )
192
+ (where you can also upload your debug file).
193
+
168
194
---
169
195
170
196
## License
0 commit comments