Skip to content

Commit

Permalink
rpcdaemon: fix Clang in sanitizer build after PR 1949 (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Apr 12, 2024
1 parent 73c32a5 commit 615fba0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions silkworm/rpc/commands/engine_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ class EngineRpcApi_ForTest : public EngineRpcApi {

using testing::InvokeWithoutArgs;

static silkworm::Bytes kBlockHash(32, '\0');
const silkworm::ChainConfig kChainConfig{
using EngineRpcApiTest = test::JsonApiTestBase<EngineRpcApi_ForTest>;

#ifndef SILKWORM_SANITIZE
static const silkworm::Bytes kBlockHash(32, '\0');
static const silkworm::ChainConfig kChainConfig{
.chain_id = 5,
.homestead_block = 0,
.tangerine_whistle_block = 0,
Expand All @@ -118,7 +121,7 @@ const silkworm::ChainConfig kChainConfig{
.terminal_total_difficulty = 10790000,
.rule_set_config = protocol::CliqueConfig{}};

const silkworm::ChainConfig kChainConfigNoTerminalTotalDifficulty{
static const silkworm::ChainConfig kChainConfigNoTerminalTotalDifficulty{
.chain_id = 5,
.homestead_block = 0,
.tangerine_whistle_block = 0,
Expand All @@ -131,9 +134,6 @@ const silkworm::ChainConfig kChainConfigNoTerminalTotalDifficulty{
.london_block = 5062605,
.rule_set_config = protocol::CliqueConfig{}};

using EngineRpcApiTest = test::JsonApiTestBase<EngineRpcApi_ForTest>;

#ifndef SILKWORM_SANITIZE
TEST_CASE_METHOD(EngineRpcApiTest, "EngineRpcApi::handle_engine_exchange_capabilities", "[silkworm][rpc][commands][engine_api]") {
nlohmann::json reply;

Expand Down

0 comments on commit 615fba0

Please sign in to comment.