Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Feb 5, 2024
1 parent 7cdefd3 commit 1e20573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dipdup/datasources/evm_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/indexes/evm_subsquid_events/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e20573

Please sign in to comment.