Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 56 additions & 4 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,64 @@ def input_parser(plan, input_args):
)

if (
result["network_params"]["fulu_fork_epoch"] != constants.FAR_FUTURE_EPOCH
and result["network_params"]["bpo_1_epoch"]
result["network_params"]["bpo_1_epoch"]
< result["network_params"]["fulu_fork_epoch"]
):
fail(
"Fulu fork must happen before BPO 1, please adjust the epochs accordingly."
result["network_params"]["bpo_1_epoch"] = result["network_params"][
"fulu_fork_epoch"
]
plan.print(
"BPO 1 epoch adjusted to Fulu epoch {0}".format(
result["network_params"]["fulu_fork_epoch"]
)
)
if (
result["network_params"]["bpo_2_epoch"]
< result["network_params"]["bpo_1_epoch"]
):
result["network_params"]["bpo_2_epoch"] = result["network_params"][
"bpo_1_epoch"
]
plan.print(
"BPO 2 epoch adjusted to BPO 1 epoch {0}".format(
result["network_params"]["bpo_1_epoch"]
)
)
if (
result["network_params"]["bpo_3_epoch"]
< result["network_params"]["bpo_2_epoch"]
):
result["network_params"]["bpo_3_epoch"] = result["network_params"][
"bpo_2_epoch"
]
plan.print(
"BPO 3 epoch adjusted to BPO 2 epoch {0}".format(
result["network_params"]["bpo_2_epoch"]
)
)
if (
result["network_params"]["bpo_4_epoch"]
< result["network_params"]["bpo_3_epoch"]
):
result["network_params"]["bpo_4_epoch"] = result["network_params"][
"bpo_3_epoch"
]
plan.print(
"BPO 4 epoch adjusted to BPO 3 epoch {0}".format(
result["network_params"]["bpo_3_epoch"]
)
)
if (
result["network_params"]["bpo_5_epoch"]
< result["network_params"]["bpo_4_epoch"]
):
result["network_params"]["bpo_5_epoch"] = result["network_params"][
"bpo_4_epoch"
]
plan.print(
"BPO 5 epoch adjusted to BPO 4 epoch {0}".format(
result["network_params"]["bpo_4_epoch"]
)
)

if result["network_params"]["fulu_fork_epoch"] != constants.FAR_FUTURE_EPOCH:
Expand Down