Skip to content

Commit

Permalink
Update beacon-chain/blockchain/process_block.go
Browse files Browse the repository at this point in the history
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com>
  • Loading branch information
nisdas and nalepae committed Apr 30, 2024
1 parent 9453e9e commit bf42972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beacon-chain/blockchain/process_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ func missingIndices(bs *filesystem.BlobStorage, root [32]byte, expected [][]byte
return missing, nil
}

func missingDataColumns(bs *filesystem.BlobStorage, root [32]byte, expected map[uint64]bool) (map[uint64]struct{}, error) {
func missingDataColumns(bs *filesystem.BlobStorage, root [32]byte, expected map[uint64]bool) (map[uint64]bool, error) {
if len(expected) == 0 {
return nil, nil
}
Expand All @@ -526,10 +526,10 @@ func missingDataColumns(bs *filesystem.BlobStorage, root [32]byte, expected map[
if err != nil {
return nil, err
}
missing := make(map[uint64]struct{}, len(expected))
missing := make(map[uint64]bool, len(expected))
for col := range expected {
if !indices[col] {
missing[col] = struct{}{}
missing[col] = true
}
}
return missing, nil
Expand Down

0 comments on commit bf42972

Please sign in to comment.