Skip to content

refactor(xatu): merge execution and consensus boot-node cron jobs#641

Draft
mattevans wants to merge 1 commit intomasterfrom
refactor/bootnode-checks
Draft

refactor(xatu): merge execution and consensus boot-node cron jobs#641
mattevans wants to merge 1 commit intomasterfrom
refactor/bootnode-checks

Conversation

@mattevans
Copy link
Member

@mattevans mattevans commented Sep 1, 2025

The discovery component had two separate cron jobs that were competing to update the same DiscV5 instance with different boot nodes:

  • Job 1: Fetched execution node records and updated DiscV5 boot nodes
  • Job 2: Fetched consensus node records and updated DiscV5 boot nodes

Both jobs ran on the same schedule, causing a race condition where the consensus job would overwrite the execution boot nodes (or vice versa). This meant DiscV5 was only ever using boot nodes from one type of network at a time.

Combine the two separate cron jobs that fetched execution and
consensus node records into a single job. This reduces duplicated
code, ensures both node types are always refreshed together, and
allows the boot-node list to be updated atomically.
@mattevans mattevans self-assigned this Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments