Skip to content

Commit

Permalink
bsc2: Enable ramanujan fork verification
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie307 committed Nov 11, 2024
1 parent 8e40647 commit 9ffdcb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public BTPMessageVerifier(Address _bmc, BigInteger _chainId, @Optional byte[] _h

@External(readonly = true)
public String getVersion() {
return "0.7.5";
return "0.7.6";
}

@External(readonly = true)
Expand Down Expand Up @@ -321,7 +321,7 @@ private void verify(ChainConfig config, Header head, Header parent, Snapshot sna
"Inconsistent block number");
Context.require(parent.getHash().equals(head.getParentHash()), "Inconsistent block hash");

// verifyForRamanujanFork(config, snap, head, parent);
verifyForRamanujanFork(config, snap, head, parent);

BigInteger diff = parent.getGasLimit().add(head.getGasLimit().negate());
if (diff.compareTo(BigInteger.ZERO) < 0) {
Expand Down

0 comments on commit 9ffdcb7

Please sign in to comment.