Align to consensus release v1.4.0-beta.2#12908
Align to consensus release v1.4.0-beta.2#12908terencechain wants to merge 12 commits intodevelopfrom
Conversation
2fd3e4e to
623156b
Compare
| ) | ||
|
|
||
| // churnLimit is normally 4 unless the validator set is extremely large. | ||
| var churnLimit = 4 |
There was a problem hiding this comment.
I am removing this to use the default config
caae3c7 to
9b4d116
Compare
| // Subnet value | ||
| BlobsidecarSubnetCount: 6, | ||
|
|
||
| MaxPerEpochActivationChurnLimit: 8, |
There was a problem hiding this comment.
do we not need the min here too?
There was a problem hiding this comment.
there's no change here
| e2eConfig.DenebForkVersion = []byte{4, 0, 0, 254} | ||
|
|
||
| // Deneb changes. | ||
| e2eConfig.MinPerEpochChurnLimit = 2 |
There was a problem hiding this comment.
do we not need max here?
There was a problem hiding this comment.
It should just use the default which is 8
| 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.
where is the minimum set for this
There was a problem hiding this comment.
Minimal is used in other places. It's not part of the change besides the value
430daff to
af124df
Compare
|
|
||
| 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.
prefer to cast deposits to uint
ee84348 to
9948ed4
Compare
| limit = churnLimit | ||
| } | ||
|
|
||
| if slots.ToEpoch(state.Slot()) >= params.BeaconConfig().DenebForkEpoch { |
There was a problem hiding this comment.
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: