mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
feat(node-core): add with_dev_block_time helper to NodeConfig (#22251)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -343,6 +343,14 @@ impl<ChainSpec> NodeConfig<ChainSpec> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the dev block time for the node.
|
||||
///
|
||||
/// This sets the interval at which the dev miner produces new blocks.
|
||||
pub const fn with_dev_block_time(mut self, block_time: std::time::Duration) -> Self {
|
||||
self.dev.block_time = Some(block_time);
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the pruning args for the node
|
||||
pub fn with_pruning(mut self, pruning: PruningArgs) -> Self {
|
||||
self.pruning = pruning;
|
||||
|
||||
Reference in New Issue
Block a user