2024-04-16 19:20:34 -07:00
|
|
|
# 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://docs.rs/zebrad/latest/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.
|
|
|
|
#
|
|
|
|
# The user's preference directory and the default path to the `zebrad` config are platform dependent,
|
|
|
|
# based on `dirs::preference_dir`, see https://docs.rs/dirs/latest/dirs/fn.preference_dir.html :
|
|
|
|
#
|
|
|
|
# | Platform | Value | Example |
|
|
|
|
# | -------- | ------------------------------------- | ---------------------------------------------- |
|
|
|
|
# | Linux | `$XDG_CONFIG_HOME` or `$HOME/.config` | `/home/alice/.config/zebrad.toml` |
|
|
|
|
# | macOS | `$HOME/Library/Preferences` | `/Users/Alice/Library/Preferences/zebrad.toml` |
|
|
|
|
# | Windows | `{FOLDERID_RoamingAppData}` | `C:\Users\Alice\AppData\Local\zebrad.toml` |
|
|
|
|
|
|
|
|
[consensus]
|
|
|
|
checkpoint_sync = true
|
|
|
|
|
|
|
|
[mempool]
|
|
|
|
eviction_memory_time = "1h"
|
|
|
|
tx_cost_limit = 80000000
|
|
|
|
|
|
|
|
[metrics]
|
|
|
|
|
|
|
|
[mining]
|
|
|
|
debug_like_zcashd = true
|
|
|
|
|
|
|
|
[network]
|
|
|
|
cache_dir = true
|
|
|
|
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"
|
|
|
|
max_connections_per_ip = 1
|
|
|
|
network = "Testnet"
|
|
|
|
peerset_initial_target_size = 25
|
|
|
|
|
add(chain): Adds a `network_name` field to `testnet::Parameters` (#8411)
* minor cleanup and rename
* Adds an empty NetworkParameters struct to Network::Testnet variant, updates production code.
* Updates tests
* Adds `NetworkKind` and uses it instead of `Network` in `HistoryTreeParts` and `transparent::Address`
* Adds a [network.testnet_parameters] section to the config, uses `NetworkKind` as zebra_network::Config::network field type, and converts 'Network' to `NetworkKind` before serializing
* Applies some suggestions from code review
* Applies suggestions from code review
* returns b58 prefix constants directly to remove From<NetworkKind> impl for zcash_primitives::consensus::Network
* Applies more suggestions from code review.
* moves conversions to zcash_primitives::consensus::Network to where they're used.
* Apply suggestions from code review
Co-authored-by: Marek <mail@marek.onl>
* rename `network` variables and method names typed as NetworkKind to `network_kind`
* use only test block heights for the network associated with them
* Applies more suggestions from code review.
* Rename `NetworkParameters` to `Parameters` and move it a new `testnet` module
* adds activation heights field
* updates stored test config, adds a quicker test for checking that stored configs can be parsed, adds an intermediate representation of activation heights
* implement Parameters for Network
* Passes &Network directly instead of converting to zp_consensus::Network where there were conversions
* fixes a bad merge (removes a network conversion in zcash_note_encryption)
* Adds a test for the Parameters impl for zebra_chain::Network
* fixes doc links
* - Makes the `activation_heights` config field optional by adding a #[serde(default)]
- Panics if a non-zero activation height is provided for the `Genesis` network upgrade
- Always sets the `Genesis` and `BeforeOverwinter` network upgrade activation heights to 0 and 1, `BeforeOverwinter` could be overwritten by a later network upgrade
- Makes the `activation_heights` field on `Parameters` private, adds/uses an accessor method instead, and adds a builder struct and `build()` method
* small refactor of activation_heights() method
* check that activation heights are in the right order
* Updates `NetworkUpgrade::activation_height()` to return the height of the next NetworkUpgrade if it doesn't find the activation height of `&self`
* checks that the miner address is of TestnetKind on Regtest and update assertion message
* Adds a DNetworkUpgradeActivationHeights struct for better control over how activation heights can be configured
* moves all ordered network upgrades to a constant, adds a no_duplicates test, moves struct with activation heights outside deserialization impl and accepts it in `ParametersBuilder::activation_heights()` instead of a Vec
* panics if any network upgrades are configured to activate at Height(0) because it's reserved for Genesis
* Simplifies the `ParametersBuilder::activation_heights()` method and removes an unnecessary test.
* Adds Sapling HRPs as fields on testnet params. (#8398)
* Applies suggestions from code review.
* Update zebra-chain/src/parameters/network_upgrade.rs
Co-authored-by: Marek <mail@marek.onl>
* Adds `network_name` field and accessor method on `Parameters`, uses it in the `Display` impl for `Network`
* Removes unnecessary `.filter()`
* adds constraints on valid network names and a test
* adds config field for setting network name, adds "with_" prefix to ParameterBuilder setter methods
* Adds `MainnetKind`, `TestnetKind`, and `RegtestKind` to reserved network names
* updates stored test configs and fixes `network_name()` docs
---------
Co-authored-by: Marek <mail@marek.onl>
2024-04-24 04:03:37 -07:00
|
|
|
[network.testnet_parameters]
|
|
|
|
network_name = "ConfiguredTestnet_1"
|
|
|
|
|
add(consensus): Add `activation_heights` field to `NetworkParameters` and implement `Parameters` for `Network` (#8383)
* minor cleanup and rename
* Adds an empty NetworkParameters struct to Network::Testnet variant, updates production code.
* Updates tests
* Adds `NetworkKind` and uses it instead of `Network` in `HistoryTreeParts` and `transparent::Address`
* Adds a [network.testnet_parameters] section to the config, uses `NetworkKind` as zebra_network::Config::network field type, and converts 'Network' to `NetworkKind` before serializing
* Applies some suggestions from code review
* Applies suggestions from code review
* returns b58 prefix constants directly to remove From<NetworkKind> impl for zcash_primitives::consensus::Network
* Applies more suggestions from code review.
* moves conversions to zcash_primitives::consensus::Network to where they're used.
* Apply suggestions from code review
Co-authored-by: Marek <mail@marek.onl>
* rename `network` variables and method names typed as NetworkKind to `network_kind`
* use only test block heights for the network associated with them
* Applies more suggestions from code review.
* Rename `NetworkParameters` to `Parameters` and move it a new `testnet` module
* adds activation heights field
* updates stored test config, adds a quicker test for checking that stored configs can be parsed, adds an intermediate representation of activation heights
* implement Parameters for Network
* Passes &Network directly instead of converting to zp_consensus::Network where there were conversions
* fixes a bad merge (removes a network conversion in zcash_note_encryption)
* Adds a test for the Parameters impl for zebra_chain::Network
* fixes doc links
* - Makes the `activation_heights` config field optional by adding a #[serde(default)]
- Panics if a non-zero activation height is provided for the `Genesis` network upgrade
- Always sets the `Genesis` and `BeforeOverwinter` network upgrade activation heights to 0 and 1, `BeforeOverwinter` could be overwritten by a later network upgrade
- Makes the `activation_heights` field on `Parameters` private, adds/uses an accessor method instead, and adds a builder struct and `build()` method
* small refactor of activation_heights() method
* check that activation heights are in the right order
* Updates `NetworkUpgrade::activation_height()` to return the height of the next NetworkUpgrade if it doesn't find the activation height of `&self`
* checks that the miner address is of TestnetKind on Regtest and update assertion message
* Adds a DNetworkUpgradeActivationHeights struct for better control over how activation heights can be configured
* moves all ordered network upgrades to a constant, adds a no_duplicates test, moves struct with activation heights outside deserialization impl and accepts it in `ParametersBuilder::activation_heights()` instead of a Vec
* panics if any network upgrades are configured to activate at Height(0) because it's reserved for Genesis
* Simplifies the `ParametersBuilder::activation_heights()` method and removes an unnecessary test.
* Adds Sapling HRPs as fields on testnet params. (#8398)
* Applies suggestions from code review.
* Update zebra-chain/src/parameters/network_upgrade.rs
Co-authored-by: Marek <mail@marek.onl>
---------
Co-authored-by: Marek <mail@marek.onl>
2024-04-18 18:20:34 -07:00
|
|
|
[network.testnet_parameters.activation_heights]
|
|
|
|
BeforeOverwinter = 1
|
|
|
|
Overwinter = 207_500
|
|
|
|
Sapling = 280_000
|
|
|
|
Blossom = 584_000
|
|
|
|
Heartwood = 903_800
|
|
|
|
Canopy = 1_028_500
|
|
|
|
NU5 = 1_842_420
|
2024-04-16 19:20:34 -07:00
|
|
|
|
|
|
|
[rpc]
|
|
|
|
debug_force_finished_sync = false
|
|
|
|
parallel_cpu_threads = 0
|
|
|
|
|
|
|
|
[state]
|
|
|
|
cache_dir = "cache_dir"
|
|
|
|
delete_old_database = true
|
|
|
|
ephemeral = false
|
|
|
|
|
|
|
|
[sync]
|
|
|
|
checkpoint_verify_concurrency_limit = 1000
|
|
|
|
download_concurrency_limit = 50
|
|
|
|
full_verify_concurrency_limit = 20
|
|
|
|
parallel_cpu_threads = 0
|
|
|
|
|
|
|
|
[tracing]
|
|
|
|
buffer_limit = 128000
|
|
|
|
force_use_color = false
|
|
|
|
use_color = true
|
add(consensus): Add `activation_heights` field to `NetworkParameters` and implement `Parameters` for `Network` (#8383)
* minor cleanup and rename
* Adds an empty NetworkParameters struct to Network::Testnet variant, updates production code.
* Updates tests
* Adds `NetworkKind` and uses it instead of `Network` in `HistoryTreeParts` and `transparent::Address`
* Adds a [network.testnet_parameters] section to the config, uses `NetworkKind` as zebra_network::Config::network field type, and converts 'Network' to `NetworkKind` before serializing
* Applies some suggestions from code review
* Applies suggestions from code review
* returns b58 prefix constants directly to remove From<NetworkKind> impl for zcash_primitives::consensus::Network
* Applies more suggestions from code review.
* moves conversions to zcash_primitives::consensus::Network to where they're used.
* Apply suggestions from code review
Co-authored-by: Marek <mail@marek.onl>
* rename `network` variables and method names typed as NetworkKind to `network_kind`
* use only test block heights for the network associated with them
* Applies more suggestions from code review.
* Rename `NetworkParameters` to `Parameters` and move it a new `testnet` module
* adds activation heights field
* updates stored test config, adds a quicker test for checking that stored configs can be parsed, adds an intermediate representation of activation heights
* implement Parameters for Network
* Passes &Network directly instead of converting to zp_consensus::Network where there were conversions
* fixes a bad merge (removes a network conversion in zcash_note_encryption)
* Adds a test for the Parameters impl for zebra_chain::Network
* fixes doc links
* - Makes the `activation_heights` config field optional by adding a #[serde(default)]
- Panics if a non-zero activation height is provided for the `Genesis` network upgrade
- Always sets the `Genesis` and `BeforeOverwinter` network upgrade activation heights to 0 and 1, `BeforeOverwinter` could be overwritten by a later network upgrade
- Makes the `activation_heights` field on `Parameters` private, adds/uses an accessor method instead, and adds a builder struct and `build()` method
* small refactor of activation_heights() method
* check that activation heights are in the right order
* Updates `NetworkUpgrade::activation_height()` to return the height of the next NetworkUpgrade if it doesn't find the activation height of `&self`
* checks that the miner address is of TestnetKind on Regtest and update assertion message
* Adds a DNetworkUpgradeActivationHeights struct for better control over how activation heights can be configured
* moves all ordered network upgrades to a constant, adds a no_duplicates test, moves struct with activation heights outside deserialization impl and accepts it in `ParametersBuilder::activation_heights()` instead of a Vec
* panics if any network upgrades are configured to activate at Height(0) because it's reserved for Genesis
* Simplifies the `ParametersBuilder::activation_heights()` method and removes an unnecessary test.
* Adds Sapling HRPs as fields on testnet params. (#8398)
* Applies suggestions from code review.
* Update zebra-chain/src/parameters/network_upgrade.rs
Co-authored-by: Marek <mail@marek.onl>
---------
Co-authored-by: Marek <mail@marek.onl>
2024-04-18 18:20:34 -07:00
|
|
|
use_journald = false
|