diff --git a/src/dipdup/datasources/evm_node.py b/src/dipdup/datasources/evm_node.py index c5d0e9101..16c44d57a 100644 --- a/src/dipdup/datasources/evm_node.py +++ b/src/dipdup/datasources/evm_node.py @@ -215,8 +215,8 @@ def call_on_disconnected(self, fn: EmptyCallback) -> None: async def get_block_by_hash(self, block_hash: str) -> dict[str, Any]: return await self._jsonrpc_request('eth_getBlockByHash', [block_hash, True]) # type: ignore[no-any-return] - async def get_block_by_level(self, block_number: int, full_transactions_data: bool = True) -> dict[str, Any]: - return await self._jsonrpc_request('eth_getBlockByNumber', [hex(block_number), full_transactions_data]) # type: ignore[no-any-return] + async def get_block_by_level(self, block_number: int, full_transactions: bool = False) -> dict[str, Any]: + return await self._jsonrpc_request('eth_getBlockByNumber', [hex(block_number), full_transactions]) # type: ignore[no-any-return] async def get_logs(self, params: dict[str, Any]) -> list[dict[str, Any]]: return await self._jsonrpc_request('eth_getLogs', [params]) # type: ignore[no-any-return] diff --git a/src/dipdup/indexes/evm_subsquid_events/index.py b/src/dipdup/indexes/evm_subsquid_events/index.py index d53f298e7..49c5215f6 100644 --- a/src/dipdup/indexes/evm_subsquid_events/index.py +++ b/src/dipdup/indexes/evm_subsquid_events/index.py @@ -171,7 +171,7 @@ async def _synchronize(self, sync_level: int) -> None: ) async def _fetch_timestamp(level: int, timestamps: dict[int, int]) -> None: - block = await self.random_node.get_block_by_level(level, full_transactions_data=False) + block = await self.random_node.get_block_by_level(level) timestamps[level] = int(block['timestamp'], 16) level = batch_last_level