kopia lustrzana https://github.com/bugout-dev/moonstream
rodzic
16a0a804fd
commit
887114b7a5
|
|
@ -166,11 +166,6 @@ def continuous_crawler(
|
|||
start_block + max_blocks_batch,
|
||||
)
|
||||
|
||||
print(f"start_block: {start_block}, end_block: {end_block}")
|
||||
print(f"web3.eth.blockNumber: {web3.eth.blockNumber}")
|
||||
print(f"confirmations: {confirmations}")
|
||||
print(f"max_blocks_batch: {max_blocks_batch}")
|
||||
|
||||
if start_block + min_blocks_batch > end_block:
|
||||
current_sleep_time += 0.1
|
||||
logger.info(
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ def function_call_crawler(
|
|||
network = Network.mumbai
|
||||
elif blockchain_type == AvailableBlockchainType.XDAI:
|
||||
network = Network.xdai
|
||||
elif blockchain_type == AvailableBlockchainType.WYRM:
|
||||
network = Network.wyrm
|
||||
else:
|
||||
raise ValueError(f"Unknown blockchain type: {blockchain_type}")
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ subscription_ids_by_blockchain = {
|
|||
"polygon": ["polygon_blockchain", "polygon_smartcontract"],
|
||||
"mumbai": ["mumbai_blockchain", "mumbai_smartcontract"],
|
||||
"xdai": ["xdai_blockchain", "xdai_smartcontract"],
|
||||
"wyrm": ["wyrm_blockchain", "wyrm_smartcontract"],
|
||||
}
|
||||
|
||||
blockchain_by_subscription_id = {
|
||||
|
|
@ -52,10 +53,12 @@ blockchain_by_subscription_id = {
|
|||
"polygon_blockchain": "polygon",
|
||||
"mumbai_blockchain": "mumbai",
|
||||
"xdai_blockchain": "xdai",
|
||||
"wyrm_blockchain": "wyrm",
|
||||
"ethereum_smartcontract": "ethereum",
|
||||
"polygon_smartcontract": "polygon",
|
||||
"mumbai_smartcontract": "mumbai",
|
||||
"xdai_smartcontract": "xdai",
|
||||
"wyrm_smartcontract": "wyrm",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue