Skip to content

Commit 3c07b29

Browse files
dhiljhunsaker
authored andcommitted
monad_eth_call_result => monad_executor_result
1 parent 01d4ba6 commit 3c07b29

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

category/rpc/eth_call.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ void set_override_state(
370370
state_object.emplace(k, std::move(v));
371371
}
372372

373-
void monad_eth_call_result_release(monad_eth_call_result *const result)
373+
void monad_executor_result_release(monad_executor_result *const result)
374374
{
375375
MONAD_ASSERT(result);
376376
if (result->output_data) {
@@ -552,10 +552,10 @@ struct monad_executor
552552
BlockHeader const &block_header, Address const &sender,
553553
uint64_t const block_number, bytes32_t const &block_id,
554554
monad_state_override const *const overrides,
555-
void (*complete)(monad_eth_call_result *, void *user), void *const user,
555+
void (*complete)(monad_executor_result *, void *user), void *const user,
556556
monad_tracer_config const tracer_config, bool const gas_specified)
557557
{
558-
monad_eth_call_result *const result = new monad_eth_call_result();
558+
monad_executor_result *const result = new monad_executor_result();
559559

560560
Pool *pool =
561561
gas_specified && txn.gas_limit > MONAD_ETH_CALL_LOW_GAS_LIMIT
@@ -585,10 +585,10 @@ struct monad_executor
585585
BlockHeader const &block_header, Address const &sender,
586586
uint64_t const block_number, bytes32_t const &block_id,
587587
monad_state_override const *const overrides,
588-
void (*complete)(monad_eth_call_result *, void *user), void *const user,
588+
void (*complete)(monad_executor_result *, void *user), void *const user,
589589
monad_tracer_config const tracer_config, bool const gas_specified,
590590
std::chrono::steady_clock::time_point const call_begin,
591-
uint64_t const eth_call_seq_no, monad_eth_call_result *const result,
591+
uint64_t const eth_call_seq_no, monad_executor_result *const result,
592592
Pool &active_pool)
593593
{
594594
if (!active_pool.try_enqueue()) {
@@ -802,8 +802,8 @@ struct monad_executor
802802

803803
void call_complete(
804804
Transaction const &transaction, evmc::Result const &evmc_result,
805-
monad_eth_call_result *const result,
806-
void (*complete)(monad_eth_call_result *, void *user), void *const user,
805+
monad_executor_result *const result,
806+
void (*complete)(monad_executor_result *, void *user), void *const user,
807807
std::vector<CallFrame> const &call_frames,
808808
nlohmann::json const &state_trace)
809809
{
@@ -856,10 +856,10 @@ struct monad_executor
856856
BlockHeader const &block_header, Address const &sender,
857857
uint64_t const block_number, bytes32_t const &block_id,
858858
monad_state_override const *const overrides,
859-
void (*complete)(monad_eth_call_result *, void *user), void *const user,
859+
void (*complete)(monad_executor_result *, void *user), void *const user,
860860
monad_tracer_config const tracer_config,
861861
std::chrono::steady_clock::time_point const call_begin,
862-
auto const eth_call_seq_no, monad_eth_call_result *const result)
862+
auto const eth_call_seq_no, monad_executor_result *const result)
863863
{
864864
// retry in high gas limit pool
865865
MONAD_ASSERT(orig_txn.gas_limit > MONAD_ETH_CALL_LOW_GAS_LIMIT);
@@ -911,7 +911,7 @@ void monad_executor_eth_call_submit(
911911
uint8_t const *const rlp_sender, size_t const rlp_sender_len,
912912
uint64_t const block_number, uint8_t const *const rlp_block_id,
913913
size_t const rlp_block_id_len, monad_state_override const *const overrides,
914-
void (*complete)(monad_eth_call_result *result, void *user),
914+
void (*complete)(monad_executor_result *result, void *user),
915915
void *const user, monad_tracer_config const tracer_config,
916916
bool const gas_specified)
917917
{

category/rpc/eth_call.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void set_override_state(
6060
uint8_t const *key, size_t key_len, uint8_t const *value,
6161
size_t valuen_len);
6262

63-
typedef struct monad_eth_call_result
63+
typedef struct monad_executor_result
6464
{
6565
int status_code;
6666
int64_t gas_used;
@@ -74,9 +74,9 @@ typedef struct monad_eth_call_result
7474
// for trace (call, prestate, statediff)
7575
uint8_t *encoded_trace;
7676
size_t encoded_trace_len;
77-
} monad_eth_call_result;
77+
} monad_executor_result;
7878

79-
void monad_eth_call_result_release(monad_eth_call_result *);
79+
void monad_executor_result_release(monad_executor_result *);
8080

8181
struct monad_executor_pool_config
8282
{
@@ -131,7 +131,7 @@ void monad_executor_eth_call_submit(
131131
uint8_t const *rlp_sender, size_t rlp_sender_len, uint64_t block_number,
132132
uint8_t const *rlp_block_id, size_t rlp_block_id_len,
133133
struct monad_state_override const *,
134-
void (*complete)(monad_eth_call_result *, void *user), void *user,
134+
void (*complete)(monad_executor_result *, void *user), void *user,
135135
enum monad_tracer_config, bool gas_specified);
136136

137137
struct monad_executor_state monad_executor_get_state(struct monad_executor *);

category/rpc/eth_call_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ namespace
105105

106106
struct callback_context
107107
{
108-
monad_eth_call_result *result;
108+
monad_executor_result *result;
109109
boost::fibers::promise<void> promise;
110110

111111
~callback_context()
112112
{
113-
monad_eth_call_result_release(result);
113+
monad_executor_result_release(result);
114114
}
115115
};
116116

117-
void complete_callback(monad_eth_call_result *result, void *user)
117+
void complete_callback(monad_executor_result *result, void *user)
118118
{
119119
auto c = (callback_context *)user;
120120

0 commit comments

Comments
 (0)