Skip to content

Commit bb76ce2

Browse files
nisdasnalepae
authored andcommitted
add it (#13865)
1 parent 3555a65 commit bb76ce2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

config/features/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ type Flags struct {
7474
PrepareAllPayloads bool // PrepareAllPayloads informs the engine to prepare a block on every slot.
7575
// BlobSaveFsync requires blob saving to block on fsync to ensure blobs are durably persisted before passing DA.
7676
BlobSaveFsync bool
77+
// EnablePeerDAS enables running the node with the experimental data availability sampling scheme.
78+
EnablePeerDAS bool
7779

7880
SaveInvalidBlock bool // SaveInvalidBlock saves invalid block to temp.
7981
SaveInvalidBlob bool // SaveInvalidBlob saves invalid blob to temp.
@@ -259,6 +261,12 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
259261
logEnabled(EnableCommitteeAwarePacking)
260262
cfg.EnableCommitteeAwarePacking = true
261263
}
264+
// For the p.o.c we enable it by default.
265+
cfg.EnablePeerDAS = true
266+
if ctx.IsSet(EnablePeerDAS.Name) {
267+
logEnabled(EnablePeerDAS)
268+
cfg.EnablePeerDAS = true
269+
}
262270

263271
cfg.AggregateIntervals = [3]time.Duration{aggregateFirstInterval.Value, aggregateSecondInterval.Value, aggregateThirdInterval.Value}
264272
Init(cfg)

config/features/flags.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ var (
170170
Name: "enable-committee-aware-packing",
171171
Usage: "Changes the attestation packing algorithm to one that is aware of attesting committees.",
172172
}
173+
EnablePeerDAS = &cli.BoolFlag{
174+
Name: "peer-das",
175+
Usage: "Enables Prysm to run with the experimental peer data availability sampling scheme.",
176+
}
173177
)
174178

175179
// devModeFlags holds list of flags that are set when development mode is on.
@@ -228,6 +232,7 @@ var BeaconChainFlags = append(deprecatedBeaconFlags, append(deprecatedFlags, []c
228232
BlobSaveFsync,
229233
EnableQUIC,
230234
EnableCommitteeAwarePacking,
235+
EnablePeerDAS,
231236
}...)...)
232237

233238
// E2EBeaconChainFlags contains a list of the beacon chain feature flags to be tested in E2E.

0 commit comments

Comments
 (0)