Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peerdas as deneb column view #133

Draft
wants to merge 22 commits into
base: peerdas-as-deneb
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
049e016
peerdas view: initial poc
skylenet Sep 23, 2024
1f3e96b
Merge branch 'master' of github.com:ethpandaops/dora into skylenet/pe…
skylenet Sep 23, 2024
6c3ea3a
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 23, 2024
b46260a
ci fixup
skylenet Sep 23, 2024
7a8ee52
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 23, 2024
b989009
trigger CI
skylenet Sep 23, 2024
55f8c87
differentiate supernodes
skylenet Sep 23, 2024
dd478a2
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 23, 2024
cddeabe
make it more compact
skylenet Sep 24, 2024
85b1d57
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 24, 2024
2cadefe
small performance improvements
skylenet Sep 24, 2024
ec7d606
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 24, 2024
09d28bf
fix outdated ENRs, due to outdated peer infos
skylenet Sep 25, 2024
8c8b28f
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 25, 2024
4229fc8
fixup seq detection
skylenet Sep 25, 2024
3156206
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 25, 2024
9606c8e
only show warnings button when warnings exist
skylenet Sep 27, 2024
65aa510
tmp workaround to fix disconnected peers appearing on list
skylenet Sep 27, 2024
0fbe709
warn about ENR diff on peers and add peer details modal content
skylenet Sep 27, 2024
e8e69ac
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 27, 2024
ae0e485
add peer infos to global peer map
skylenet Sep 27, 2024
a77ab13
Merge branch 'skylenet/peer-das-view' of github.com:ethpandaops/dora …
skylenet Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions clients/consensus/chainspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ type ChainSpec struct {
SyncCommitteeSize uint64 `yaml:"SYNC_COMMITTEE_SIZE"`
DepositContractAddress []byte `yaml:"DEPOSIT_CONTRACT_ADDRESS"`

// EIP7594: PeerDAS
NumberOfColumns *uint64 `yaml:"NUMBER_OF_COLUMNS"`
DataColumnSidecarSubnetCount *uint64 `yaml:"DATA_COLUMN_SIDECAR_SUBNET_COUNT"`
CustodyRequirement *uint64 `yaml:"CUSTODY_REQUIREMENT"`

// additional dora specific specs
WhiskForkEpoch *uint64
}
Expand Down
11 changes: 10 additions & 1 deletion clients/consensus/rpc/beaconapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,16 @@ func (bc *BeaconClient) GetNodePeers(ctx context.Context) ([]*v1.Peer, error) {
if err != nil {
return nil, err
}
return result.Data, nil

// Temporary workaround to filter out peers that are not connected (https://github.com/grandinetech/grandine/issues/46)
filteredPeers := make([]*v1.Peer, 0)
for _, peer := range result.Data {
if peer.State == "connected" {
filteredPeers = append(filteredPeers, peer)
}
}

return filteredPeers, nil
}

func (bc *BeaconClient) GetNodeIdentity(ctx context.Context) (*NodeIdentity, error) {
Expand Down
35 changes: 32 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,41 @@ require (
github.com/timandy/routine v1.1.4
github.com/urfave/negroni v1.0.0
golang.org/x/crypto v0.27.0
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
golang.org/x/text v0.18.0
golang.org/x/time v0.6.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-libp2p v0.36.3 // indirect
github.com/libp2p/go-libp2p-core v0.0.1 // indirect
github.com/libp2p/go-libp2p-crypto v0.1.0 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base32 v0.1.0 // indirect
github.com/multiformats/go-base36 v0.2.0 // indirect
github.com/multiformats/go-multiaddr v0.13.0 // indirect
github.com/multiformats/go-multibase v0.2.0 // indirect
github.com/multiformats/go-multicodec v0.9.0 // indirect
github.com/multiformats/go-multihash v0.2.3 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prysmaticlabs/fastssz v0.0.0-20240620202422-a981b8ef89d3 // indirect
github.com/prysmaticlabs/gohashtree v0.0.4-beta.0.20240624100937-73632381301b // indirect
github.com/prysmaticlabs/prysm/v3 v3.2.2 // indirect
github.com/prysmaticlabs/prysm/v5 v5.1.0 // indirect
github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a // indirect
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/thomaso-mirodin/intmath v0.0.0-20160323211736-5dc6d854e46e // indirect
lukechampine.com/blake3 v1.3.0 // indirect
)

require (
dario.cat/mergo v1.0.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
Expand Down Expand Up @@ -91,7 +120,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.19.1 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.54.0 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/r3labs/sse/v2 v2.10.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
Expand All @@ -100,7 +129,7 @@ require (
github.com/shopspring/decimal v1.4.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/supranational/blst v0.3.12 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tdewolff/parse v2.3.4+incompatible // indirect
github.com/tdewolff/test v1.0.9 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
Expand Down
154 changes: 154 additions & 0 deletions go.sum

Large diffs are not rendered by default.

Loading
Loading