Skip to content

Commit

Permalink
Merge pull request #1107 from moonstream-to/fix-get-latest
Browse files Browse the repository at this point in the history
Add version parameter.
  • Loading branch information
Andrei-Dolgolev authored Jun 27, 2024
2 parents 82cde6d + 6c2cf33 commit d94b57e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crawlers/mooncrawl/mooncrawl/moonworm_crawler/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ def handle_crawl_v3(args: argparse.Namespace) -> None:
logger.info("Using PoA middleware")
web3.middleware_onion.inject(geth_poa_middleware, layer=0)

last_labeled_block = get_last_labeled_block_number(db_session, blockchain_type)
last_labeled_block = get_last_labeled_block_number(
db_session, blockchain_type, db_version=3
)
logger.info(f"Last labeled block: {last_labeled_block}")

start_block = args.start
Expand Down

0 comments on commit d94b57e

Please sign in to comment.