Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed May 13, 2024
1 parent fc9c0d8 commit 684e433
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
4 changes: 2 additions & 2 deletions contracts/ReverseFullCheckpoint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion deployment.config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@
],
"gap": 450,
"epoch": 900,
"initV2Epoch": 7074000
"V2ESBN": 7074000
}
}
2 changes: 1 addition & 1 deletion scripts/ReverseFullCheckpointDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 684e433

Please sign in to comment.