|
| 1 | +# Default configuration for zebrad. |
| 2 | +# |
| 3 | +# This file can be used as a skeleton for custom configs. |
| 4 | +# |
| 5 | +# Unspecified fields use default values. Optional fields are Some(field) if the |
| 6 | +# field is present and None if it is absent. |
| 7 | +# |
| 8 | +# This file is generated as an example using zebrad's current defaults. |
| 9 | +# You should set only the config options you want to keep, and delete the rest. |
| 10 | +# Only a subset of fields are present in the skeleton, since optional values |
| 11 | +# whose default is None are omitted. |
| 12 | +# |
| 13 | +# The config format (including a complete list of sections and fields) is |
| 14 | +# documented here: |
| 15 | +# https://docs.rs/zebrad/latest/zebrad/config/struct.ZebradConfig.html |
| 16 | +# |
| 17 | +# CONFIGURATION SOURCES (in order of precedence, highest to lowest): |
| 18 | +# |
| 19 | +# 1. Environment variables with ZEBRA_ prefix (highest precedence) |
| 20 | +# - Format: ZEBRA_SECTION__KEY (double underscore for nested keys) |
| 21 | +# - Examples: |
| 22 | +# - ZEBRA_NETWORK__NETWORK=Testnet |
| 23 | +# - ZEBRA_RPC__LISTEN_ADDR=127.0.0.1:8232 |
| 24 | +# - ZEBRA_STATE__CACHE_DIR=/path/to/cache |
| 25 | +# - ZEBRA_TRACING__FILTER=debug |
| 26 | +# - ZEBRA_METRICS__ENDPOINT_ADDR=0.0.0.0:9999 |
| 27 | +# |
| 28 | +# 2. Configuration file (TOML format) |
| 29 | +# - At the path specified via -c flag, e.g. `zebrad -c myconfig.toml start`, or |
| 30 | +# - At the default path in the user's preference directory (platform-dependent, see below) |
| 31 | +# |
| 32 | +# 3. Hard-coded defaults (lowest precedence) |
| 33 | +# |
| 34 | +# The user's preference directory and the default path to the `zebrad` config are platform dependent, |
| 35 | +# based on `dirs::preference_dir`, see https://docs.rs/dirs/latest/dirs/fn.preference_dir.html : |
| 36 | +# |
| 37 | +# | Platform | Value | Example | |
| 38 | +# | -------- | ------------------------------------- | ---------------------------------------------- | |
| 39 | +# | Linux | `$XDG_CONFIG_HOME` or `$HOME/.config` | `/home/alice/.config/zebrad.toml` | |
| 40 | +# | macOS | `$HOME/Library/Preferences` | `/Users/Alice/Library/Preferences/zebrad.toml` | |
| 41 | +# | Windows | `{FOLDERID_RoamingAppData}` | `C:\Users\Alice\AppData\Local\zebrad.toml` | |
| 42 | + |
| 43 | +[consensus] |
| 44 | +checkpoint_sync = true |
| 45 | + |
| 46 | +[health] |
| 47 | +enforce_on_test_networks = false |
| 48 | +min_connected_peers = 1 |
| 49 | +ready_max_blocks_behind = 2 |
| 50 | +ready_max_tip_age = "5m" |
| 51 | + |
| 52 | +[mempool] |
| 53 | +eviction_memory_time = "1h" |
| 54 | +max_datacarrier_bytes = 83 |
| 55 | +tx_cost_limit = 80000000 |
| 56 | + |
| 57 | +[metrics] |
| 58 | + |
| 59 | +[mining] |
| 60 | +internal_miner = false |
| 61 | + |
| 62 | +[network] |
| 63 | +cache_dir = true |
| 64 | +crawl_new_peer_interval = "1m 1s" |
| 65 | +initial_mainnet_peers = [ |
| 66 | + "dnsseed.str4d.xyz:8233", |
| 67 | + "dnsseed.z.cash:8233", |
| 68 | + "mainnet.seeder.shieldedinfra.net:8233", |
| 69 | + "mainnet.seeder.zfnd.org:8233", |
| 70 | + "seeder.zec.rocks:8233", |
| 71 | +] |
| 72 | +initial_testnet_peers = [ |
| 73 | + "dnsseed.testnet.z.cash:18233", |
| 74 | + "seeder.testnet.zec.rocks:18233", |
| 75 | + "testnet.seeder.zfnd.org:18233", |
| 76 | +] |
| 77 | +listen_addr = "[::]:8233" |
| 78 | +max_connections_per_ip = 1 |
| 79 | +network = "Mainnet" |
| 80 | +peerset_initial_target_size = 25 |
| 81 | + |
| 82 | +[notify] |
| 83 | + |
| 84 | +[rpc] |
| 85 | +cookie_dir = "cache_dir" |
| 86 | +debug_force_finished_sync = false |
| 87 | +enable_cookie_auth = true |
| 88 | +max_response_body_size = 52428800 |
| 89 | +parallel_cpu_threads = 0 |
| 90 | + |
| 91 | +[state] |
| 92 | +cache_dir = "cache_dir" |
| 93 | +debug_skip_non_finalized_state_backup_task = false |
| 94 | +delete_old_database = true |
| 95 | +ephemeral = false |
| 96 | +should_backup_non_finalized_state = true |
| 97 | + |
| 98 | +[sync] |
| 99 | +checkpoint_verify_concurrency_limit = 1000 |
| 100 | +download_concurrency_limit = 50 |
| 101 | +full_verify_concurrency_limit = 20 |
| 102 | +parallel_cpu_threads = 0 |
| 103 | + |
| 104 | +[tracing] |
| 105 | +buffer_limit = 128000 |
| 106 | +force_use_color = false |
| 107 | +use_color = true |
| 108 | +use_journald = false |
| 109 | + |
| 110 | +[zcashd_compat] |
| 111 | +block_gossip_peer_ips = [] |
| 112 | +enabled = false |
| 113 | +manage_zcashd = false |
| 114 | +restart_backoff = "2s" |
| 115 | +restart_backoff_max = "5m" |
| 116 | +restart_reset_after = "1h" |
| 117 | +shutdown_grace_period = "5m" |
| 118 | +startup_delay = "1s" |
| 119 | +zcashd_extra_args = [] |
| 120 | +zcashd_source = "path" |
0 commit comments