Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .ethexe.example.local.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,26 @@ block-time = 1
# (optional, default: false).
# no-rpc = false

# Flag to enable RocksDB snapshot download RPC API.
# (optional, default: false).
# snapshot = false

# Bearer token used by `snapshot_download`.
# Must be provided when `snapshot = true`.
# snapshot-token = "replace-with-strong-random-token"

# Snapshot stream chunk size in bytes.
# (optional, default: 1048576).
# snapshot-chunk-bytes = 1048576

# Snapshot artifact retention in seconds.
# (optional, default: 600).
# snapshot-retention-secs = 600

# Maximum concurrent snapshot downloads.
# (optional, default: 1).
# snapshot-max-concurrent = 1

##########################################################################################

### Prometheus (metrics) service parameters.
Expand Down
20 changes: 20 additions & 0 deletions .ethexe.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,26 @@
# (optional, default: false).
# no-rpc = false

# Flag to enable RocksDB snapshot download RPC API.
# (optional, default: false).
# snapshot = false

# Bearer token used by `snapshot_download`.
# Must be provided when `snapshot = true`.
# snapshot-token = "replace-with-strong-random-token"

# Snapshot stream chunk size in bytes.
# (optional, default: 1048576).
# snapshot-chunk-bytes = 1048576

# Snapshot artifact retention in seconds.
# (optional, default: 600).
# snapshot-retention-secs = 600

# Maximum concurrent snapshot downloads.
# (optional, default: 1).
# snapshot-max-concurrent = 1

##########################################################################################

### Prometheus (metrics) service parameters.
Expand Down
46 changes: 35 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion ethexe/cli/src/params/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ impl Params {
.transpose()
})
.transpose()?;
let rpc = rpc.and_then(|p| p.into_config(&node));
let rpc = match rpc {
Some(params) => params.into_config(&node)?,
None => None,
};
let prometheus = prometheus.and_then(|p| p.into_config());
Ok(Config {
node,
Expand Down
Loading
Loading