File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,17 @@ proc check_data_column_sidecar_kzg_proofs(
241241
242242 ok ()
243243
244+ proc check_partial_data_column_sidecar_kzg_proofs (
245+ p_data_column: fulu.PartialDataColumnSidecar ,
246+ all_commitments: deneb.KzgCommitments ):
247+ Result [void , ValidationError ] =
248+ let res = p_data_column.verify_partial_data_column_sidecar_kzg_proofs (
249+ all_commitments)
250+ if res.isErr:
251+ return errReject (res.error)
252+
253+ ok ()
254+
244255# Gossip Validation
245256# ----------------------------------------------------------------
246257
Original file line number Diff line number Diff line change @@ -2856,6 +2856,15 @@ proc broadcastDataColumnSidecar*(
28562856 node.forkDigestAtEpoch (contextEpoch), subnet_id)
28572857 node.broadcast (topic, data_column)
28582858
2859+ proc broadcastPartialDataColumnHeader * (
2860+ node: Eth2Node , subnet_id: uint64 , p_data_column: fulu.PartialDataColumnHeader ):
2861+ Future [SendResult ] {.async : (raises: [CancelledError ], raw: true ).} =
2862+ let
2863+ contextEpoch = p_data_column.signed_block_header.message.slot.epoch
2864+ topic = getDataColumnSidecarTopic (
2865+ node.forkDigestAtEpoch (contextEpoch), subnet_id)
2866+ node.broadcast (topic, p_data_column)
2867+
28592868proc broadcastSyncCommitteeMessage * (
28602869 node: Eth2Node , msg: SyncCommitteeMessage ,
28612870 subcommitteeIdx: SyncSubcommitteeIndex ):
Original file line number Diff line number Diff line change 117117 kzg_proofs* : deneb.KzgProofs
118118
119119 # https://github.com/MarcoPolo/consensus-specs/blob/ffee0018e44ba83da90ff41523a3ab88262e5a57/specs/fulu/p2p-interface.md#partialdatacolumnpartsmetadata
120- PartialDataColumnPartsMetadat * = object
120+ PartialDataColumnPartsMetadata * = object
121121 available* : BitArray [int (MAX_BLOB_COMMITMENTS_PER_BLOCK )]
122122 requests* : BitArray [int (MAX_BLOB_COMMITMENTS_PER_BLOCK )]
123123
You can’t perform that action at this time.
0 commit comments