From be6dfd15500262dcc8fce65f6c9ebe2c11e644aa Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Mon, 30 Oct 2023 08:47:48 +0000 Subject: [PATCH] restore BeaconNodeCommandTest test --- .../tech/pegasys/teku/cli/BeaconNodeCommandTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teku/src/test/java/tech/pegasys/teku/cli/BeaconNodeCommandTest.java b/teku/src/test/java/tech/pegasys/teku/cli/BeaconNodeCommandTest.java index 623edc75281..4165c909101 100644 --- a/teku/src/test/java/tech/pegasys/teku/cli/BeaconNodeCommandTest.java +++ b/teku/src/test/java/tech/pegasys/teku/cli/BeaconNodeCommandTest.java @@ -426,6 +426,15 @@ public void shouldParseDenebEpochsStoreBlobs() { assertThat(specConfigDeneb.getEpochsStoreBlobs()).isEqualTo(12345); } + @Test + public void shouldHaveTrustedSetupConfiguredForDeneb() { + final String[] args = {XDENEB_FORK_EPOCH_OPTION, "200000"}; + beaconNodeCommand.parse(args); + final Optional trustedSetup = + beaconNodeCommand.tekuConfiguration().eth2NetworkConfiguration().getTrustedSetup(); + assertThat(trustedSetup).isPresent(); + } + private Path createConfigFile() throws IOException { final URL configFile = BeaconNodeCommandTest.class.getResource("/complete_config.yaml"); final String updatedConfig =