-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(config): Add tests for old configs (#4676)
* change `initial_mainnet_peers` and `initial_testnet_peers` type to `IndexSet` * add tests for zebra config files * add serde feature to indexmap * remove async * update config * fix `stored_config_path()` * skip tests if config is not found * improve error * use CARGO_MANIFEST_DIR * remove `stored_config_is_newest` test * move `stored_config_works` test to the end of `valid_generated_config_test` * space
- Loading branch information
1 parent
49cda21
commit 83aa42e
Showing
9 changed files
with
124 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Default configuration for zebrad. | ||
# | ||
# This file can be used as a skeleton for custom configs. | ||
# | ||
# Unspecified fields use default values. Optional fields are Some(field) if the | ||
# field is present and None if it is absent. | ||
# | ||
# This file is generated as an example using zebrad's current defaults. | ||
# You should set only the config options you want to keep, and delete the rest. | ||
# Only a subset of fields are present in the skeleton, since optional values | ||
# whose default is None are omitted. | ||
# | ||
# The config format (including a complete list of sections and fields) is | ||
# documented here: | ||
# https://doc.zebra.zfnd.org/zebrad/config/struct.ZebradConfig.html | ||
# | ||
# zebrad attempts to load configs in the following order: | ||
# | ||
# 1. The -c flag on the command line, e.g., `zebrad -c myconfig.toml start`; | ||
# 2. The file `zebrad.toml` in the users's preference directory (platform-dependent); | ||
# 3. The default config. | ||
|
||
[consensus] | ||
checkpoint_sync = true | ||
debug_skip_parameter_preload = false | ||
|
||
[mempool] | ||
eviction_memory_time = '1h' | ||
tx_cost_limit = 80000000 | ||
|
||
[metrics] | ||
|
||
[network] | ||
crawl_new_peer_interval = '1m 1s' | ||
initial_mainnet_peers = [ | ||
'dnsseed.z.cash:8233', | ||
'dnsseed.str4d.xyz:8233', | ||
'mainnet.seeder.zfnd.org:8233', | ||
'mainnet.is.yolo.money:8233', | ||
] | ||
initial_testnet_peers = [ | ||
'dnsseed.testnet.z.cash:18233', | ||
'testnet.seeder.zfnd.org:18233', | ||
'testnet.is.yolo.money:18233', | ||
] | ||
listen_addr = '0.0.0.0:8233' | ||
network = 'Mainnet' | ||
peerset_initial_target_size = 25 | ||
|
||
[rpc] | ||
|
||
[state] | ||
cache_dir = 'cache_dir' | ||
delete_old_database = true | ||
ephemeral = false | ||
|
||
[sync] | ||
lookahead_limit = 400 | ||
max_concurrent_block_requests = 25 | ||
|
||
[tracing] | ||
force_use_color = false | ||
use_color = true | ||
use_journald = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters