update eth2 type 00 deposits withdrawal addresses job#474
update eth2 type 00 deposits withdrawal addresses job#474
Conversation
|
|
||
| console.log('🎉 ETH2 withdrawal credentials update process completed!') | ||
| // Historic cache building and latest cache building happen simultaneously | ||
| // await Promise.all([historicCacheLoop(), latestCacheLoop()]) |
There was a problem hiding this comment.
Bug: Cache Loops Fail After ETH2 Update
The runnerLoop no longer runs its core historicCacheLoop() and latestCacheLoop() as the Promise.all() call was replaced by the synchronous ETH2 update process (lines 163-336). Additionally, the logger.error() on lines 217-223 logs missing environment variables unconditionally, creating misleading errors even when BEACON_BASE_URL and BEACON_NODE_API_KEY are present.
|
|
||
| console.log('🎉 ETH2 withdrawal credentials update process completed!') | ||
| // Historic cache building and latest cache building happen simultaneously | ||
| // await Promise.all([historicCacheLoop(), latestCacheLoop()]) |
There was a problem hiding this comment.
Bug: Worker Disabled, ETH2 Update Runs Once
The worker's main processing loops (historicCacheLoop and latestCacheLoop) are commented out, disabling its core function of continuous blockchain event processing and cache building. Instead, a new ETH2 update process runs once, causing the worker to exit after completion. The Promise.all call for parallel execution is also commented out.
| CHAIN_NOT_ENABLED, | ||
| 'https://bsc-mainnet.infura.io/v3/abafec30d6aa45ffa0c763b5552a2d02', | ||
| ), | ||
| bsc: parseStringEnv(CHAIN_NOT_ENABLED, CHAIN_NOT_ENABLED), |
There was a problem hiding this comment.
Note
Introduces an ETH2 validator withdrawal-credentials update job using beacon API, adds beacon config/env wiring, and exposes related constants/utilities while tightening default RPC provider enablement.
userAddressfrom withdrawal credentials, and updates DB.getEth2StakingPubkeysWithPlaceholderAddressandupdateUserAddressesForPubkeys.ZERO_ADDRESSfor ETH; introduces and exportsETH2_DEPOSIT_CONTRACT_ADDRESS.ETH2_TYPE_00_WITHDRAWAL_PLACEHOLDER_ADDRESS; uses it for type 00 credentials.BEACON_BASE_URLandBEACON_NODE_API_KEYsupport.bsc,ftm,sei, and defaults forbase,arb,avax,linea).docker-compose.yaml: PassesBEACON_BASE_URLandBEACON_NODE_API_KEYtoapiandworkers.Written by Cursor Bugbot for commit 00d588f. This will update automatically on new commits. Configure here.