wait for fulu fork epoch to pass, then trigger metadata_v3 (#6759)

* wait for fulu fork epoch to pass, then trigger metadata_v3

* tiny fix
This commit is contained in:
Agnish Ghosh 2024-12-13 23:21:38 +05:30 committed by GitHub
parent f10fb511cc
commit 7647d17d9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2097,7 +2097,7 @@ proc getMetadata_vx(node: Eth2Node, peer: Peer):
{.async: (raises: [CancelledError]).} =
let
res =
if node.cfg.FULU_FORK_EPOCH != FAR_FUTURE_EPOCH:
if node.getBeaconTime().slotOrZero.epoch >= node.cfg.FULU_FORK_EPOCH:
# Directly fetch fulu metadata if available
await getMetadata_v3(peer)
else: