Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

add logging for the currently used rpc node #289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ repos:
rev: v0.910
hooks:
- id: 'mypy'
language_version: python3.9
additional_dependencies:
- 'pydantic'
- 'types-requests'
3 changes: 3 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async def inspect_block_command(block_number: int, rpc: str):
trace_db_session = get_trace_session()

inspector = MEVInspector(rpc)
logger.info(f"Using the RPC node {rpc}")

await inspector.inspect_single_block(
inspect_db_session=inspect_db_session,
Expand Down Expand Up @@ -94,6 +95,8 @@ async def inspect_many_blocks_command(
max_concurrency=max_concurrency,
request_timeout=request_timeout,
)
logger.info(f"Using the RPC node {rpc}")

await inspector.inspect_many_blocks(
inspect_db_session=inspect_db_session,
trace_db_session=trace_db_session,
Expand Down