From 684e43386a2ab7312cfc9c94881b1be27bd0ebdc Mon Sep 17 00:00:00 2001 From: Galaxy <30950645+GalaxySciTech@users.noreply.github.com> Date: Mon, 13 May 2024 16:14:22 +0400 Subject: [PATCH] update --- README.md | 2 +- contracts/ReverseFullCheckpoint.sol | 4 ++-- deployment.config.json.example | 2 +- scripts/ReverseFullCheckpointDeploy.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5688139..4ba99ca 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ We recommend setting up the contract in a Python virtual environment since it ut - `validators`: List of initial validator addresses - `gap`: GAP block number on the public chain - `epoch`: EPOCH block number on the public chain - - `initV2Epoch`: init v2 epoch number + - `V2ESBN`: v2 epoch start block number, epoch block required Configure your network in `network.config.json`: diff --git a/contracts/ReverseFullCheckpoint.sol b/contracts/ReverseFullCheckpoint.sol index c7f4e52..c7bcee1 100644 --- a/contracts/ReverseFullCheckpoint.sol +++ b/contracts/ReverseFullCheckpoint.sol @@ -57,7 +57,7 @@ contract ReverseFullCheckpoint { bytes memory block1Header, uint64 initGap, uint64 initEpoch, - int256 initV2Epoch + int256 V2ESBN ) public { require(INIT_STATUS == 0, "Already init"); require(initialValidatorSet.length > 0, "Validator Empty"); @@ -76,7 +76,7 @@ contract ReverseFullCheckpoint { .getValidationParams(block1Header); require( - n == initV2Epoch && block1.number == initV2Epoch + 1, + n == V2ESBN && block1.number == V2ESBN + 1, "Invalid Init Block" ); headerTree[genesisHeaderHash] = Header({ diff --git a/deployment.config.json.example b/deployment.config.json.example index d60b9a9..4f5759e 100644 --- a/deployment.config.json.example +++ b/deployment.config.json.example @@ -116,6 +116,6 @@ ], "gap": 450, "epoch": 900, - "initV2Epoch": 7074000 + "V2ESBN": 7074000 } } diff --git a/scripts/ReverseFullCheckpointDeploy.js b/scripts/ReverseFullCheckpointDeploy.js index 07914f7..f91bc51 100644 --- a/scripts/ReverseFullCheckpointDeploy.js +++ b/scripts/ReverseFullCheckpointDeploy.js @@ -28,7 +28,7 @@ async function main() { data1Encoded, parentnetDeploy["gap"], parentnetDeploy["epoch"], - parentnetDeploy["initV2Epoch"] + parentnetDeploy["V2ESBN"] ); await tx.wait(); console.log("full checkpoint deployed to:", full.address);