mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Add interop hardfork in all relevant places. (#14582)
This commit is contained in:
@ -159,6 +159,13 @@ impl OpChainSpecBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
/// Enable Interop at genesis
|
||||
pub fn interop_activated(mut self) -> Self {
|
||||
self = self.isthmus_activated();
|
||||
self.inner = self.inner.with_fork(OpHardfork::Interop, ForkCondition::Timestamp(0));
|
||||
self
|
||||
}
|
||||
|
||||
/// Build the resulting [`OpChainSpec`].
|
||||
///
|
||||
/// # Panics
|
||||
@ -329,6 +336,7 @@ impl From<Genesis> for OpChainSpec {
|
||||
(OpHardfork::Granite.boxed(), genesis_info.granite_time),
|
||||
(OpHardfork::Holocene.boxed(), genesis_info.holocene_time),
|
||||
(OpHardfork::Isthmus.boxed(), genesis_info.isthmus_time),
|
||||
// (OpHardfork::Interop.boxed(), genesis_info.interop_time),
|
||||
];
|
||||
|
||||
let mut time_hardforks = time_hardfork_opts
|
||||
@ -982,6 +990,7 @@ mod tests {
|
||||
OpHardfork::Granite.boxed(),
|
||||
OpHardfork::Holocene.boxed(),
|
||||
// OpHardfork::Isthmus.boxed(),
|
||||
// OpHardfork::Interop.boxed(),
|
||||
];
|
||||
|
||||
for (expected, actual) in expected_hardforks.iter().zip(hardforks.iter()) {
|
||||
|
||||
Reference in New Issue
Block a user