Skip to content

Commit

Permalink
chainspec changes for all Istanbul EIPs #771
Browse files Browse the repository at this point in the history
  • Loading branch information
tkstanczak committed Aug 23, 2019
1 parent a10c03d commit 0ec55d5
Show file tree
Hide file tree
Showing 15 changed files with 831 additions and 551 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class ChainParameters
public Keccak ForkCanonHash { get; set; }
public long? ForkBlock { get; set; }
public long? Eip150Transition { get; set; }
public long? Eip152Transition { get; set; }
public long? Eip160Transition { get; set; }
public long? Eip161abcTransition { get; set; }
public long? Eip161dTransition { get; set; }
Expand All @@ -44,9 +45,12 @@ public class ChainParameters
public long? Eip145Transition { get; set; }
public long? Eip1014Transition { get; set; }
public long? Eip1052Transition { get; set; }
public long? Eip1108Transition { get; set; }
public long? Eip1283Transition { get; set; }
public long? Eip1283DisableTransition { get; set; }
public long? Eip1344Transition { get; set; }
public long? Eip1884Transition { get; set; }
public long? Eip2028Transition { get; set; }
public long? Eip2200Transition { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ public class ChainSpec
public long? ByzantiumBlockNumber { get; set; }

public long? ConstantinopleBlockNumber { get; set; }

public long? ConstantinopleFixBlockNumber { get; set; }

public long? IstanbulBlockNumber { get; set; }
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/Forks/0_Olympic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,9 @@ private Olympic()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/Forks/1_Frontier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private Frontier()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/Forks/2_Homestead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private Homestead()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/Forks/3_Dao.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private Dao()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private TangerineWhistle()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private SpuriousDragon()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/Forks/6_Byzantium.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private Byzantium()
public bool IsEip1234Enabled => false;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private Constantinople()
public bool IsEip1234Enabled => true;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private ConstantinopleFix()
public bool IsEip1234Enabled => true;
public bool IsEip1344Enabled => false;
public bool IsEip2028Enabled => false;
public bool IsEip152Enabled => false;
public bool IsEip1108Enabled => false;
public bool IsEip1884Enabled => false;
public bool IsEip2200Enabled => false;
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/Forks/9_Istanbul.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ private Istanbul()
public bool IsEip1234Enabled => true;
public bool IsEip1344Enabled => true;
public bool IsEip2028Enabled => true;
public bool IsEip152Enabled => true;
public bool IsEip1108Enabled => true;
public bool IsEip1884Enabled => true;
public bool IsEip2200Enabled => true;
}
}
22 changes: 21 additions & 1 deletion src/Nethermind/Nethermind.Core/Specs/IReleaseSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,28 @@ public interface IReleaseSpec
bool IsEip1344Enabled { get; }

/// <summary>
/// Transaction data gas cost reduction
/// Istanbul transaction data gas cost reduction
/// </summary>
bool IsEip2028Enabled { get; }

/// <summary>
/// Istanbul Blake2b precompile
/// </summary>
bool IsEip152Enabled { get; }

/// <summary>
/// Istanbul alt_bn128 gas cost reduction
/// </summary>
bool IsEip1108Enabled { get; }

/// <summary>
/// Istanbul state opcodes gas cost increase
/// </summary>
bool IsEip1884Enabled { get; }

/// <summary>
/// Istanbul net-metered SSTORE
/// </summary>
bool IsEip2200Enabled { get; }
}
}
4 changes: 4 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/ReleaseSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ public class ReleaseSpec : IReleaseSpec
public bool IsEip1234Enabled { get; set; }
public bool IsEip1344Enabled { get; set; }
public bool IsEip2028Enabled { get; set; }
public bool IsEip152Enabled { get; set; }
public bool IsEip1108Enabled { get; set; }
public bool IsEip1884Enabled { get; set; }
public bool IsEip2200Enabled { get; set; }
}
}

0 comments on commit 0ec55d5

Please sign in to comment.