File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ async def process_block(self, interrupt_handler: InterruptHandler) -> None:
130130 chain_head = chain_head , interrupt_handler = interrupt_handler
131131 )
132132 await scan_validators_events (block_number = chain_head .block_number , is_startup = False )
133- subtasks = [self .validator_registration_subtask .process (chain_head = chain_head )]
133+ subtasks = [self .validator_registration_subtask .process ()]
134134 if not settings .disable_withdrawals :
135135 subtasks .append (self .validator_withdrawal_subtask .process ())
136136 await asyncio .gather (* subtasks )
Original file line number Diff line number Diff line change 99from web3 .types import BlockNumber , Gwei , Wei
1010
1111from src .common .clients import execution_client
12+ from src .common .consensus import get_chain_latest_head
1213from src .common .contracts import VaultContract , validators_registry_contract
1314from src .common .execution import check_gas_price
1415from src .common .harvest import get_harvest_params
@@ -46,13 +47,14 @@ def __init__(
4647 self .keystore = keystore
4748 self .relayer = relayer
4849
49- async def process (self , chain_head : ChainHead ) -> None :
50+ async def process (self ) -> None :
5051 if self .keystore :
5152 await update_unused_validator_keys_metric (
5253 keystore = self .keystore ,
5354 )
5455 harvest_params = await get_harvest_params (settings .vault )
5556
57+ chain_head = await get_chain_latest_head ()
5658 vault_assets = await get_vault_assets (harvest_params = harvest_params , chain_head = chain_head )
5759 vault_assets = Gwei (max (0 , vault_assets - settings .vault_min_balance_gwei ))
5860
You can’t perform that action at this time.
0 commit comments