Skip to content

Commit

Permalink
Merge branch 'master' into peerdas-as-deneb
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 16, 2024
2 parents 6a981bb + c720fbd commit a43882d
Show file tree
Hide file tree
Showing 21 changed files with 1,310 additions and 173 deletions.
7 changes: 4 additions & 3 deletions .hack/devnet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ fi
# Get chain config
kurtosis files inspect "$ENCLAVE_NAME" el_cl_genesis_data ./config.yaml | tail -n +2 > "${__dir}/generated-chain-config.yaml"

# Get validator ranges
kurtosis files inspect "$ENCLAVE_NAME" validator-ranges validator-ranges.yaml | tail -n +2 > "${__dir}/generated-validator-ranges.yaml"

## Generate Dora config
ENCLAVE_UUID=$(kurtosis enclave inspect "$ENCLAVE_NAME" --full-uuids | grep 'UUID:' | awk '{print $2}')

Expand All @@ -35,9 +38,6 @@ EXECUTION_NODES=$(docker ps -aq -f "label=enclave_uuid=$ENCLAVE_UUID" \
cat <<EOF > "${__dir}/generated-dora-config.yaml"
logging:
outputLevel: "info"
chain:
name: $ENCLAVE_NAME
configPath: "${__dir}/generated-chain-config.yaml"
server:
host: "0.0.0.0"
port: "8080"
Expand All @@ -49,6 +49,7 @@ frontend:
siteName: "Dora the Explorer"
siteSubtitle: "$ENCLAVE_NAME - Kurtosis"
ethExplorerLink: ""
validatorNamesYaml: "${__dir}/generated-validator-ranges.yaml"
showSensitivePeerInfos: true
beaconapi:
localCacheSize: 10
Expand Down
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
40 changes: 31 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
github.com/mashingan/smapping v0.1.19
github.com/mitchellh/mapstructure v1.5.0
github.com/pk910/dynamic-ssz v0.0.5
github.com/pressly/goose/v3 v3.22.0
github.com/pressly/goose/v3 v3.22.1
github.com/protolambda/bls12-381-util v0.1.0
github.com/protolambda/zrnt v0.32.3
github.com/protolambda/ztyp v0.2.2
Expand All @@ -29,13 +29,35 @@ require (
github.com/tdewolff/minify v2.3.6+incompatible
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/text v0.18.0
golang.org/x/time v0.6.0
golang.org/x/crypto v0.28.0
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
golang.org/x/text v0.19.0
golang.org/x/time v0.7.0
gopkg.in/yaml.v3 v3.0.1
)

require (
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.5 // 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/v5 v5.1.0 // 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 +113,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 @@ -110,9 +132,9 @@ require (
go.opentelemetry.io/otel/metric v1.27.0 // indirect
go.opentelemetry.io/otel/trace v1.27.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/Knetic/govaluate.v3 v3.0.0 // indirect
Expand All @@ -121,7 +143,7 @@ require (
modernc.org/libc v1.55.3 // indirect
modernc.org/mathutil v1.6.0 // indirect
modernc.org/memory v1.8.0 // indirect
modernc.org/sqlite v1.32.0 // indirect
modernc.org/sqlite v1.33.1 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)

Expand Down
Loading

0 comments on commit a43882d

Please sign in to comment.