-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor how a user can get a
Clock
for the configured network
- Loading branch information
1 parent
d1c665f
commit 4d4e3fb
Showing
3 changed files
with
18 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// This module contains support for various Ethereum netowrks. | ||
use crate::state_transition::Context; | ||
|
||
// NOTE: the default genesis time here is usually seen on testnets | ||
// where we have control over the genesis details | ||
pub fn typical_genesis_time(context: &Context) -> u64 { | ||
context.min_genesis_time + context.genesis_delay | ||
} |
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