Skip to content

Commit

Permalink
wait for fulu fork epoch to pass, then trigger metadata_v3 (#6759)
Browse files Browse the repository at this point in the history
* wait for fulu fork epoch to pass, then trigger metadata_v3

* tiny fix
  • Loading branch information
agnxsh authored Dec 13, 2024
1 parent f10fb51 commit 7647d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_chain/networking/eth2_network.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7647d17

Please sign in to comment.