Small fuzzing fixes (#7418)

* Addresses an issue in the Fluent API where certain EVM bytecode could 
  lead to executions that mismatch canonical execution.
* Uses LOG.debug instead of System.out.println to prevent console spam 
  during fuzzing.

Signed-off-by: Guido Vranken <guidovranken@gmail.com>
pull/7420/head
Guido Vranken 4 months ago committed by GitHub
parent 9cb8b06e4b
commit 14d2809860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      evm/src/main/java/org/hyperledger/besu/evm/fluent/EVMExecutor.java
  2. 2
      evm/src/main/java/org/hyperledger/besu/evm/precompile/KZGPointEvalPrecompiledContract.java

@ -755,6 +755,7 @@ public class EVMExecutor {
})
.process(messageFrame, tracer);
}
initialMessageFrame.getSelfDestructs().forEach(worldUpdater::deleteAccount);
if (commitWorldState) {
worldUpdater.commit();
}

@ -140,7 +140,7 @@ public class KZGPointEvalPrecompiledContract implements PrecompiledContract {
null, Optional.of(ExceptionalHaltReason.PRECOMPILE_ERROR));
}
} catch (RuntimeException kzgFailed) {
System.out.println(kzgFailed.getMessage());
LOG.debug("Native KZG failed", kzgFailed);
return PrecompileContractResult.halt(
null, Optional.of(ExceptionalHaltReason.PRECOMPILE_ERROR));

Loading…
Cancel
Save