From 2b9bf7c3e9684a32c66262cbbec5601a063b7e27 Mon Sep 17 00:00:00 2001 From: Bartek Tofel Date: Wed, 24 Apr 2024 12:06:03 +0200 Subject: [PATCH] don't fail in test config, display warning if eph addresses are set and set them to 0 --- integration-tests/testconfig/testconfig.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/integration-tests/testconfig/testconfig.go b/integration-tests/testconfig/testconfig.go index 1f76e65f531..fb031958fa5 100644 --- a/integration-tests/testconfig/testconfig.go +++ b/integration-tests/testconfig/testconfig.go @@ -407,14 +407,9 @@ func GetConfig(configurationName string, product Product) (TestConfig, error) { } if testConfig.Seth != nil && !isAnySimulated && (testConfig.Seth.EphemeralAddrs != nil && *testConfig.Seth.EphemeralAddrs != 0) { - msg := ` - Error: Ephemeral Addresses Misconfigured - - Your configuration contains %d ephemeral address(es), which are only permissible for use with simulated networks. Using them on live networks poses a risk of losing your funds. Please adjust your TOML configuration file to ensure proper settings: - [Seth] - ephemeral_addresses_number = 0 -` - return TestConfig{}, fmt.Errorf(msg, *testConfig.Seth.EphemeralAddrs) + testConfig.Seth.EphemeralAddrs = new(int64) + logger.Warn(). + Msg("Ephemeral addresses were enabled, but test was setup to run on a live network. Ephemeral addresses will be disabled.") } if testConfig.Seth != nil && (testConfig.Seth.EphemeralAddrs != nil && *testConfig.Seth.EphemeralAddrs != 0) {