Changes to allow evmtool t8n-server to work with execution-spec-tests (#5701)

An omnibus of minor changes needed for t8n-server to work with the EFs
new execution-spec-tests framework

* Reduce logging output
* Fix json library mismatch between t8n and t8n-server
* Add hook to enumerate supported forks
* temporarily map Shanghai+6780 to Cancun
* add to main distro under 'evmtool' name
* No longer support the "protected" attribute in TXes

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
This commit is contained in:
Danno Ferrin
2023-07-18 17:47:54 -06:00
committed by GitHub
parent 407f84a98b
commit 03ff688043
13 changed files with 173 additions and 118 deletions

View File

@@ -16,6 +16,8 @@ package org.hyperledger.besu.util;
import java.util.NoSuchElementException;
import org.slf4j.LoggerFactory;
/** The library independent logger configurator util. */
@SuppressWarnings("CatchAndPrintStackTrace")
public interface LogConfigurator {
@@ -28,6 +30,8 @@ public interface LogConfigurator {
*/
static void setLevel(final String parentLogger, final String level) {
try {
// ensure we have at least one log context, to load configs
LoggerFactory.getLogger(LogConfigurator.class);
Log4j2ConfiguratorUtil.setAllLevels(parentLogger, level);
} catch (NoClassDefFoundError | ClassCastException | NoSuchElementException e) {
// This is expected when Log4j support is not in the classpath, so ignore