diff --git a/common/neon_rpc/client.py b/common/neon_rpc/client.py index 4fbfd239..a203c31d 100644 --- a/common/neon_rpc/client.py +++ b/common/neon_rpc/client.py @@ -273,6 +273,11 @@ async def emulate_neon_call( sol_account_dict=emul_sol_acct_dict, slot=self._get_slot(block), ) + + + _LOG.info("emulate_neon_call, req = %+v", req) + + resp: EmulNeonCallResp = await self._send_request("emulate", req, EmulNeonCallResp) if check_result: self._check_emulator_result(resp) diff --git a/proxy/rpc/np_call_api.py b/proxy/rpc/np_call_api.py index 5899504d..962b564f 100644 --- a/proxy/rpc/np_call_api.py +++ b/proxy/rpc/np_call_api.py @@ -20,7 +20,9 @@ from .server_abc import NeonProxyApi from ..base.rpc_api import RpcEthTxRequest from ..base.rpc_gas_limit_calculator import RpcNeonGasLimitCalculator +import logging +_LOG = logging.getLogger(__name__) class _RpcEthAccountModel(BaseJsonRpcModel): nonce: HexUIntField = Field(0) @@ -109,7 +111,9 @@ async def eth_call( ) -> EthBinStrField: _ = object_state chain_id = self._get_tx_chain_id(ctx, tx) + _LOG.info("eth_call, chain_id = %d", chain_id) block = await self.get_block_by_tag(block_tag) + _LOG.info("eth_call, block.slot = %d", block.slot) evm_cfg = await self._get_evm_cfg() resp = await self._core_api_client.emulate_neon_call( evm_cfg, @@ -117,6 +121,8 @@ async def eth_call( check_result=True, block=block, ) + _LOG.info("eth_call, resp.result = %d", resp.result) + _LOG.info("eth_call, resp.result = %d", resp.result) return resp.result @NeonProxyApi.method(name="eth_estimateGas")