Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed May 14, 2024
1 parent 37a01be commit e67b11a
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 @@ -39,7 +39,7 @@ We recommend setting up the contract in a Python virtual environment since it ut
- `parentnet`: Subnet deploy config :
- `validators`: List of initial validator addresses
- `epoch`: Blocks per epoch on the public chain
- `V2ESBN`: V2 epoch start block number, epoch block required
- `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 @@ -55,7 +55,7 @@ contract ReverseFullCheckpoint {
bytes memory genesisHeader,
bytes memory block1Header,
uint64 initEpoch,
int256 V2ESBN
int256 v2esbn
) public {
require(INIT_STATUS == 0, "Already init");
require(initialValidatorSet.length > 0, "Validator Empty");
Expand All @@ -74,7 +74,7 @@ contract ReverseFullCheckpoint {
.getValidationParams(block1Header);

require(
n == V2ESBN && block1.number == V2ESBN + 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 @@ -115,6 +115,6 @@
"0xfd63783e43070be1a305cd21013b659823e335ca"
],
"epoch": 900,
"V2ESBN": 7074000
"v2esbn": 7074000
}
}
2 changes: 1 addition & 1 deletion scripts/ReverseFullCheckpointDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function main() {
data0Encoded,
data1Encoded,
parentnetDeploy["epoch"],
parentnetDeploy["V2ESBN"]
parentnetDeploy["v2esbn"]
);
await tx.wait();
console.log("full checkpoint deployed to:", full.address);
Expand Down

0 comments on commit e67b11a

Please sign in to comment.