Skip to content

Commit

Permalink
rpc: fix typos (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 authored Jan 17, 2024
1 parent 3e71e73 commit 94baa51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions silkworm/rpc/commands/engine_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ TEST_CASE("handle_engine_get_payload_v1 fails with invalid amount of params", "[
"method":"engine_getPayloadV1",
"params":[]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -342,7 +342,7 @@ TEST_CASE("handle_engine_new_payload_v1 succeeds if request is expected payload
"transactions":["0xf92ebdeab45d368f6354e8c5a8ac586c"]
}]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
std::unique_ptr<ethdb::Database> database;
Expand Down Expand Up @@ -383,7 +383,7 @@ TEST_CASE("handle_engine_new_payload_v1 fails with invalid amount of params", "[
"method":"engine_newPayloadV1",
"params":[]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -440,7 +440,7 @@ TEST_CASE("handle_engine_forkchoice_updated_v1 succeeds only with forkchoiceStat
}
]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -502,7 +502,7 @@ TEST_CASE("handle_engine_forkchoice_updated_v1 succeeds with both params", "[sil
}
]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -560,7 +560,7 @@ TEST_CASE("handle_engine_forkchoice_updated_v1 succeeds with both params and sec
null
]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -601,7 +601,7 @@ TEST_CASE("handle_engine_forkchoice_updated_v1 fails with invalid amount of para
"method":"engine_forkchoiceUpdatedV1",
"params":[]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -649,7 +649,7 @@ TEST_CASE("handle_engine_forkchoice_updated_v1 fails with empty finalized block
}
]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down Expand Up @@ -694,7 +694,7 @@ TEST_CASE("handle_engine_forkchoice_updated_v1 fails with empty safe block hash"
}
]
})"_json;
// Initialize contex pool
// Initialize context pool
ClientContextPool cp{1};
cp.start();
// Initialise components
Expand Down
2 changes: 1 addition & 1 deletion silkworm/rpc/commands/erigon_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Task<void> ErigonRpcApi::handle_erigon_get_latest_logs(const nlohmann::json& req
}

if (options.log_count != 0 && options.block_count != 0) {
auto error_msg = "logs count & block count are ambigious";
auto error_msg = "logs count & block count are ambiguous";
SILK_ERROR << error_msg << request.dump();
reply = make_json_error(request, -32000, error_msg);
co_return;
Expand Down
2 changes: 1 addition & 1 deletion silkworm/rpc/commands/erigon_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ TEST_CASE_METHOD(ErigonRpcApiTest, "ErigonRpcApi::handle_erigon_block_number", "
}
#endif // _WIN32

SECTION("request earlist") {
SECTION("request earliest") {
CHECK_THROWS_AS(run<&ErigonRpcApi_ForTest::erigon_block_number>(
R"({
"jsonrpc":"2.0",
Expand Down

0 comments on commit 94baa51

Please sign in to comment.