Skip to content

Ecip1099EpochCalculator

Diego López León edited this page Jun 2, 2026 · 1 revision

Ecip1099EpochCalculator

Verdict: Identical methods — promoted from a nested class

Natively this was a nested class inside EpochCalculator.java; the plugin promotes it to a top-level class. The diff below is class-body vs class-body (the nested class is extracted by brace-matching and dedented, so the surrounding EpochCalculator interface and DefaultEpochCalculator are excluded). epochStartBlock and cacheEpoch are identical; the residual diff is only the promotion to public, dropped dead commented-out code, and an explicit constructor/javadoc.

Native (pre-removal) ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/EpochCalculator.java @ 1167c5a544^
Plugin (current) src/main/java/org/hyperledger/besu/plugins/classic/protocol/Ecip1099EpochCalculator.java
Change +3 / -6 lines

Diff

--- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/EpochCalculator.java::Ecip1099EpochCalculator (1167c5a544^)
+++ b/src/main/java/org/hyperledger/besu/plugins/classic/protocol/Ecip1099EpochCalculator.java::Ecip1099EpochCalculator
@@ -1,11 +1,8 @@
-final class Ecip1099EpochCalculator implements EpochCalculator {
-  // private final long activationBlock;
+public final class Ecip1099EpochCalculator implements EpochCalculator {
 
-  //    public Ecip1099EpochCalculator(final long activationBlock) {
-  //      this.activationBlock = activationBlock;
-  //    }
+  /** Creates a new ECIP-1099 epoch calculator. */
+  public Ecip1099EpochCalculator() {}
 
-  /** calculate start block given epoch */
   @Override
   public long epochStartBlock(final long block) {
     long epoch = cacheEpoch(block);

Auto-generated by generate-diffs.py · base 1167c5a544^ (commit before #9671, which removed ETC from Besu).

Clone this wiki locally