Signed-off-by: Danno Ferrin <danno@numisight.com>
mega-eof
Danno Ferrin 6 months ago
parent b185371a7c
commit 4a4b7900fa
  1. 3
      config/src/main/java/org/hyperledger/besu/config/StubGenesisConfigOptions.java
  2. 3
      evm/src/main/java/org/hyperledger/besu/evm/contractvalidation/PrefixCodeRule.java
  3. 3
      evm/src/main/java/org/hyperledger/besu/evm/gascalculator/FrontierGasCalculator.java
  4. 7
      evm/src/main/java/org/hyperledger/besu/evm/internal/ReturnStack.java

@ -81,6 +81,9 @@ public class StubGenesisConfigOptions implements GenesisConfigOptions, Cloneable
private boolean zeroBaseFee = false;
private boolean fixedBaseFee = false;
/** Default constructor. */
public StubGenesisConfigOptions() {}
@Override
public StubGenesisConfigOptions clone() {
try {

@ -30,6 +30,9 @@ public class PrefixCodeRule implements ContractValidationRule {
private static final byte FORMAT_RESERVED = (byte) 0xEF;
/** Default constructor. */
public PrefixCodeRule() {}
@Override
// As per https://eips.ethereum.org/EIPS/eip-3541
public Optional<ExceptionalHaltReason> validate(

@ -122,6 +122,9 @@ public class FrontierGasCalculator implements GasCalculator {
private static final long SELF_DESTRUCT_REFUND_AMOUNT = 24_000L;
/** Default constructor. */
public FrontierGasCalculator() {}
@Override
public long transactionIntrinsicGasCost(final Bytes payload, final boolean isContractCreate) {
int zeros = 0;

@ -17,7 +17,12 @@ package org.hyperledger.besu.evm.internal;
/** The type Return stack. */
public class ReturnStack extends FlexStack<ReturnStack.ReturnStackItem> {
/** The type Return stack item. */
/**
* The type Return stack item.
*
* @param codeSectionIndex the code section index
* @param pc the pc
*/
public record ReturnStackItem(int codeSectionIndex, int pc) {}
/**

Loading…
Cancel
Save