Gate Deneb `beacon_block` subscription (#4735)

This commit is contained in:
henridf 2023-03-14 12:52:01 +01:00 committed by GitHub
parent ceefc49965
commit 9906a0d5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -1467,6 +1467,7 @@ proc installMessageValidators(node: BeaconNode) =
toValidationResult(node.processor[].processSignedBeaconBlock( toValidationResult(node.processor[].processSignedBeaconBlock(
MsgSource.gossip, signedBlock))) MsgSource.gossip, signedBlock)))
if node.dag.cfg.DENEB_FORK_EPOCH != FAR_FUTURE_EPOCH:
node.network.addValidator( node.network.addValidator(
getBeaconBlocksTopic(forkDigests.deneb), getBeaconBlocksTopic(forkDigests.deneb),
proc (signedBlock: deneb.SignedBeaconBlock): ValidationResult = proc (signedBlock: deneb.SignedBeaconBlock): ValidationResult =