crawler begins from 1000 behind

pull/481/head^2
yhtiyar 2021-12-17 00:48:36 +03:00
rodzic 16a272ab71
commit b8b8e01787
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -79,7 +79,7 @@ def handle_crawl(args: argparse.Namespace) -> None:
logger.info(
"No last labeled block found, using start block (web3.eth.blockNumber - 300)"
)
start_block = web3.eth.blockNumber - 300
start_block = web3.eth.blockNumber - 10000
logger.info(f"Starting from block: {start_block}")
elif last_labeled_block is not None:
if start_block < last_labeled_block and not args.force: