-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Align to consensus release v1.4.0-beta.2 #12908
Conversation
2fd3e4e
to
623156b
Compare
@@ -29,8 +29,6 @@ import ( | |||
"google.golang.org/protobuf/types/known/emptypb" | |||
) | |||
|
|||
// churnLimit is normally 4 unless the validator set is extremely large. | |||
var churnLimit = 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am removing this to use the default config
caae3c7
to
9b4d116
Compare
@@ -270,6 +270,8 @@ var mainnetBeaconConfig = &BeaconChainConfig{ | |||
|
|||
// Subnet value | |||
BlobsidecarSubnetCount: 6, | |||
|
|||
MaxPerEpochActivationChurnLimit: 8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we not need the min here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no change here
@@ -96,6 +96,9 @@ func E2EMainnetTestConfig() *BeaconChainConfig { | |||
e2eConfig.CapellaForkVersion = []byte{3, 0, 0, 254} | |||
e2eConfig.DenebForkVersion = []byte{4, 0, 0, 254} | |||
|
|||
// Deneb changes. | |||
e2eConfig.MinPerEpochChurnLimit = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we not need max here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should just use the default which is 8
@@ -146,6 +146,10 @@ func ProcessRegistryUpdates(ctx context.Context, state state.BeaconState) (state | |||
if churnLimit < limit { | |||
limit = churnLimit | |||
} | |||
// Cap churn limit to max per epoch churn limit. New in EIP7514. | |||
if limit > params.BeaconConfig().MaxPerEpochActivationChurnLimit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is the minimum set for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minimal is used in other places. It's not part of the change besides the value
430daff
to
af124df
Compare
@@ -249,8 +247,8 @@ func activatesDepositedValidators(ec *e2etypes.EvaluationContext, conns ...*grpc | |||
return fmt.Errorf("missing %d validators for post-genesis deposits", len(expected)) | |||
} | |||
|
|||
if deposits != churnLimit { | |||
return fmt.Errorf("expected %d deposits to be processed in epoch %d, received %d", churnLimit, epoch, deposits) | |||
if deposits != int(params.BeaconConfig().MinPerEpochChurnLimit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer to cast deposits to uint
ee84348
to
9948ed4
Compare
@@ -147,6 +148,13 @@ func ProcessRegistryUpdates(ctx context.Context, state state.BeaconState) (state | |||
limit = churnLimit | |||
} | |||
|
|||
if slots.ToEpoch(state.Slot()) >= params.BeaconConfig().DenebForkEpoch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't the state version be better here ? we would only apply this update on deneb states
ddd1397
to
341a1ac
Compare
63553bf
to
41366d8
Compare
41366d8
to
a87113d
Compare
v1.4.0-beta.2
v1.4.0-beta.2
superseded by #12959 |
Todos: