-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into halloween-checkpoints
- Loading branch information
Showing
16 changed files
with
124 additions
and
32 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -61,8 +61,7 @@ jobs: | |
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
# Rust 1.64 hangs when downloading the Zcash Parameters on GitHub Actions runners | ||
toolchain: 1.63 | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
components: llvm-tools-preview | ||
|
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
|
||
- name: Rust files | ||
id: changed-files-rust | ||
uses: tj-actions/[email protected].0 | ||
uses: tj-actions/[email protected].2 | ||
with: | ||
files: | | ||
**/*.rs | ||
|
@@ -51,7 +51,7 @@ jobs: | |
- name: Workflow files | ||
id: changed-files-workflows | ||
uses: tj-actions/[email protected].0 | ||
uses: tj-actions/[email protected].2 | ||
with: | ||
files: | | ||
.github/workflows/*.yml | ||
|
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,17 @@ | ||
//! Mining config | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use zebra_chain::transparent::Address; | ||
|
||
/// Mining configuration section. | ||
#[derive(Clone, Debug, Default, Deserialize, Serialize)] | ||
#[serde(deny_unknown_fields, default)] | ||
pub struct Config { | ||
/// The address used for miner payouts. | ||
/// Currently, Zebra only supports transparent addresses. | ||
/// | ||
/// Zebra sends mining fees and miner rewards to this address in the | ||
/// `getblocktemplate` RPC coinbase transaction. | ||
pub miner_address: Option<Address>, | ||
} |
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
72 changes: 72 additions & 0 deletions
72
zebrad/tests/common/configs/getblocktemplate-v1.0.0-rc.0.toml
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,72 @@ | ||
# 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] | ||
|
||
[mining] | ||
|
||
[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] | ||
debug_force_finished_sync = false | ||
parallel_cpu_threads = 1 | ||
|
||
[state] | ||
cache_dir = 'cache_dir' | ||
delete_old_database = true | ||
ephemeral = false | ||
|
||
[sync] | ||
checkpoint_verify_concurrency_limit = 800 | ||
download_concurrency_limit = 50 | ||
full_verify_concurrency_limit = 20 | ||
parallel_cpu_threads = 0 | ||
|
||
[tracing] | ||
buffer_limit = 128000 | ||
force_use_color = false | ||
use_color = true | ||
use_journald = false | ||
|