Skip to content

Commit 0236209

Browse files
committed
cleanup redundant overloads
1 parent 9e5e20c commit 0236209

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

beacon_chain/spec/peerdas_helpers.nim

-38
Original file line numberDiff line numberDiff line change
@@ -288,44 +288,6 @@ proc get_data_column_sidecars*(signed_beacon_block: fulu.TrustedSignedBeaconBloc
288288

289289
sidecars
290290

291-
proc get_data_column_sidecars*(
292-
signed_block_header: fulu.SignedBeaconBlockHeader,
293-
inclusion_proof: array[KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH, Eth2Digest],
294-
kzg_commitments: KzgCommitments,
295-
cellsAndProofs: seq[CellsAndProofs]
296-
): seq[DataColumnSidecar] =
297-
## Given a trusted signed beacon block and the cells/proofs associated
298-
## with each data column (thereby blob as well) corresponding to the block,
299-
## this function assembles the sidecars which can be distributed to
300-
## the peers post data column reconstruction at every slot start.
301-
##
302-
## Note: this function only accepts `TrustedSignedBeaconBlock` as
303-
## during practice we would be computing cells and proofs from
304-
## data columns only after retrieving them from the database, where
305-
## they we were already verified and persisted.
306-
var
307-
sidecars =
308-
newSeqOfCap[DataColumnSidecar](CELLS_PER_EXT_BLOB)
309-
310-
for column_index in 0..<NUMBER_OF_COLUMNS:
311-
var
312-
column_cells: seq[KzgCell]
313-
column_proofs: seq[KzgProof]
314-
for i in 0..<cellsAndProofs.len:
315-
column_cells.add(cellsAndProofs[i].cells)
316-
column_proofs.add(cellsAndProofs[i].proofs)
317-
318-
var sidecar = DataColumnSidecar(
319-
index: ColumnIndex(column_index),
320-
column: DataColumn.init(column_cells),
321-
kzg_commitments: kzg_commitments,
322-
kzg_proofs: KzgProofs.init(column_proofs),
323-
signed_block_header: signed_block_header,
324-
kzg_commitments_inclusion_proof: inclusion_proof)
325-
sidecars.add(sidecar)
326-
327-
sidecars
328-
329291
# Additional overload to perform reconstruction at the time of gossip
330292
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/fulu/das-core.md#get_data_column_sidecars
331293
proc get_data_column_sidecars*(signed_beacon_block: fulu.SignedBeaconBlock,

0 commit comments

Comments
 (0)