Skip to content

Commit

Permalink
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
Browse files Browse the repository at this point in the history
…into peerdas-as-deneb-column-view
  • Loading branch information
skylenet committed Sep 23, 2024
2 parents 6c3ea3a + b46260a commit 7a8ee52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 4 additions & 6 deletions handlers/clients_cl.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,11 @@ func buildCLClientsPageData() (*models.ClientsCLPageData, time.Duration) {
}

// Transform the custody columns to a map for easier access
if resColumns != nil {
for _, idx := range resColumns {
if _, ok := columnDistribution[idx]; !ok {
columnDistribution[idx] = make(map[string]bool)
}
columnDistribution[idx][v.PeerID] = true
for _, idx := range resColumns {
if _, ok := columnDistribution[idx]; !ok {
columnDistribution[idx] = make(map[string]bool)
}
columnDistribution[idx][v.PeerID] = true
}

peerDASInfo := models.ClientCLPageDataPeerDAS{
Expand Down
6 changes: 1 addition & 5 deletions utils/peerdas.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ import (

var (
// Custom errors
errCustodySubnetCountTooLarge = errors.New("custody subnet count larger than data column sidecar subnet count")
errIndexTooLarge = errors.New("column index is larger than the specified columns count")
errMismatchLength = errors.New("mismatch in the length of the commitments and proofs")
errRecordNil = errors.New("record is nil")
errCannotLoadCustodySubnetCount = errors.New("cannot load the custody subnet count from peer")
errCustodySubnetCountTooLarge = errors.New("custody subnet count larger than data column sidecar subnet count")

// maxUint256 is the maximum value of a uint256.
maxUint256 = &uint256.Int{math.MaxUint64, math.MaxUint64, math.MaxUint64, math.MaxUint64}
Expand Down

0 comments on commit 7a8ee52

Please sign in to comment.