Skip to content

Commit

Permalink
Remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Jun 18, 2024
1 parent f4a11c2 commit d884004
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions moonworm/crawler/function_call_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,7 @@ def crawl(self, from_block: int, to_block: int, flush_state: bool = False):
method_id = transaction.get("input")[:10]
if method_id in self.whitelisted_methods:
self.process_transaction(transaction)
else:
print(
f"Function not in ABI, MethodID: {method_id} tx: {transaction['hash'].hex()}. Ignored."
)

self.state.state
if flush_state:
self.state.flush()
2 changes: 0 additions & 2 deletions moonworm/crawler/moonstream_ethereum_state_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ def _get_block_from_db(self, block_number: int) -> Optional[Dict[str, Any]]:
block_transactions = {}

for raw_tx in raw_block_transactions:

if block_transactions.get(raw_tx.block_number) is None:
block_transactions[raw_tx.block_number] = []

block_transactions[raw_tx.block_number].append(raw_tx)

if block_transactions.get(block_number) is None:
Expand Down

0 comments on commit d884004

Please sign in to comment.