Repository navigation
fix(validator): wait for the beacon node before giving up on the VRF state file - #970
Open
pablodeymo wants to merge 1 commit into
Open
pablodeymo wants to merge 1 commit into
pablodeymo wants to merge 1 commit into
Conversation
…state file On pq-devnet-1 the validator client hashed every key's VRF tree (minutes each, hours for 500 keys) instead of loading the published .vrf file, and missed its proposals meanwhile. The file's records fold to their roots under this client's VRF rule (checked against the published kurtosis set), so the file is fine; the loader gave up on it too easily. - resolve_indices retries until the node answers and knows at least one key, with no two-minute limit: a client started before its node, or a node still loading, lost every key's state. - Each record read is retried five times with backoff before its key is hashed, rather than one failed first read abandoning the file. - One warning counts the keys that fell through by reason (no_index, no_record, unreadable, refused, with the first refusal's error), in place of a warning per key. Refs #936
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port of #939 (
84e36a7f) ontopq-devnet-2(refs #936).Motivation
On
pq-devnet-2(65,536 validators, ~3,200 keys per host), giving up on--vrf-state-urlafter 2 minutes (REGISTRY_ATTEMPTS = 60×2s) or after a single transient read error on the first.vrfrecord forces every validator key on the host to hash its full VRF tree sequentially (~100s per key = tens of hours of missed proposals on a fresh start).Changes
resolve_indices): retries everyREGISTRY_RETRY(2s) without a 2-minute cap until the beacon node answers and knows at least one of the validator's keys (runs on the dedicatedpq-vrf-treesthread, so it never blocks attestations, aggregations, or PTC votes).read_vrf_state): retries each.vrfrecord read up to 5 times with doubling backoff (~30s total) before falling back to hashing.warn!counting misses by reason (no_index,no_record,unreadable,refused, plusfirst_refusal).docs/beacon_pq.mdand ports the 4 unit tests from fix(validator): wait for the beacon node before giving up on the VRF state file #939.