Skip to content
Merged
19 changes: 0 additions & 19 deletions tests/core/pyspec/eth2spec/test/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,25 +431,6 @@ def entry(*args, **kw):
return entry


def disable_process_reveal_deadlines(fn):
"""
Decorator to make a function execute with `process_reveal_deadlines` OFF.
This is for testing long-range epochs transition without considering the reveal-deadline slashing effect.
"""

def entry(*args, spec: Spec, **kw):
if hasattr(spec, "process_reveal_deadlines"):
old_state = spec.process_reveal_deadlines
spec.process_reveal_deadlines = lambda state: None

yield from fn(*args, spec=spec, **kw)

if hasattr(spec, "process_reveal_deadlines"):
spec.process_reveal_deadlines = old_state

return with_meta_tags({"reveal_deadlines_setting": 1})(entry)


def with_all_phases(fn):
"""
A decorator for running a test with every phase
Expand Down
Empty file.
Empty file.

This file was deleted.

Loading