Skip to content

Commit

Permalink
early epoch end manager struct
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Nov 19, 2023
1 parent dcda92f commit 0c43542
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crates/ethcore/src/engines/hbbft/hbbft_early_epoch_end_manager.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
use std::time::{Instant, Duration};
use super::NodeId;


pub(crate) struct EarlyEpochEndManager {

/// The current epoch number.
current_tracked_epoch_number: u64,

/// epoch manager start up time.
start_time: Instant,

/// allowed devp2p warmup time.
allowed_devp2p_warmup_time: Duration,

/// public keys of all validators for this epoch.
validators: Vec<NodeId>,

}
1 change: 1 addition & 0 deletions crates/ethcore/src/engines/hbbft/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod block_reward_hbbft;
mod contracts;
mod contribution;
mod hbbft_early_epoch_end_manager;
mod hbbft_engine;
mod hbbft_message_memorium;
mod hbbft_peers_management;
Expand Down

0 comments on commit 0c43542

Please sign in to comment.