Skip to content

Commit

Permalink
defaults, spotless, javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <[email protected]>
  • Loading branch information
garyschulte committed Jan 10, 2025
1 parent 95bd232 commit 67f912f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion besu/src/test/resources/everything_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ rpc-http-max-request-content-length = 5242880
rpc-max-logs-range=100
json-pretty-print-enabled=false
cache-last-blocks=512
cache-precompiles=true
rpc-gas-cap = 50000000
rpc-max-trace-filter-range=100

Expand Down Expand Up @@ -253,4 +254,4 @@ Xevm-jumpdest-cache-weight-kb=32000
# plugins
Xplugins-external-enabled=true
plugins=["none"]
plugin-continue-on-error=false
plugin-continue-on-error=false
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ public String getName() {
return name;
}

protected static Boolean enableResultCaching = Boolean.TRUE;
/** Default result caching to false unless otherwise set. */
protected static Boolean enableResultCaching = Boolean.FALSE;

/**
* Enable or disable precompile result caching.
*
* @param enablePrecompileCaching boolean indicating whether to cache precompile results
*/
public static void setPrecompileCaching(final boolean enablePrecompileCaching) {
enableResultCaching = enablePrecompileCaching;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,11 @@ public static PrecompileContractResult halt(
}
}

/**
* Record type used for precompile result caching.
*
* @param cachedInput cached input bytes
* @param cachedResult cached result
*/
record PrecompileInputResultTuple(Bytes cachedInput, PrecompileContractResult cachedResult) {}
}

0 comments on commit 67f912f

Please sign in to comment.