Skip to content

Commit

Permalink
All EIP7251 containers passing
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Apr 22, 2024
1 parent 7dbb9ef commit e1cf4ea
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 127 deletions.
188 changes: 94 additions & 94 deletions beacon-chain/core/blocks/withdrawals_test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/prysm/v1alpha1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ssz_gen_marshal(
"BlobIdentifier",
"DepositSnapshot",
"PendingBalanceDeposit",
"PartialWithdrawal",
"PendingPartialWithdrawal",
"ExecutionLayerWithdrawalRequest",
"Consolidation",
"SignedConsolidation",
Expand Down
10 changes: 5 additions & 5 deletions proto/prysm/v1alpha1/beacon_state.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/prysm/v1alpha1/beacon_state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ message BeaconStateElectra {
uint64 consolidation_balance_to_consume = 12004;
uint64 earliest_consolidation_epoch = 12005 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/prysm/v5/consensus-types/primitives.Epoch"];
repeated PendingBalanceDeposit pending_balance_deposits = 12006 [(ethereum.eth.ext.ssz_max) = "134217728"];
repeated PartialWithdrawal pending_partial_withdrawals = 12007 [(ethereum.eth.ext.ssz_max) = "134217728"];
repeated PendingPartialWithdrawal pending_partial_withdrawals = 12007 [(ethereum.eth.ext.ssz_max) = "134217728"];
repeated PendingConsolidation pending_consolidations = 12008 [(ethereum.eth.ext.ssz_max) = "262144"];
}

Expand Down
26 changes: 13 additions & 13 deletions proto/prysm/v1alpha1/eip_7251.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/prysm/v1alpha1/eip_7251.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ message PendingBalanceDeposit {
uint64 amount = 2;
}

message PartialWithdrawal {
message PendingPartialWithdrawal {
// Validator index for the withdrawal.
uint64 index = 1 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/prysm/v5/consensus-types/primitives.ValidatorIndex"];

Expand Down
24 changes: 12 additions & 12 deletions proto/prysm/v1alpha1/generated.ssz.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions testing/spectest/shared/electra/ssz_static/ssz_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ func UnmarshalledSSZ(t *testing.T, serializedBytes []byte, folderName string) (i
obj = &ethpb.BLSToExecutionChange{}
case "SignedBLSToExecutionChange":
obj = &ethpb.SignedBLSToExecutionChange{}
case "PendingBalanceDeposit":
obj = &ethpb.PendingBalanceDeposit{}
case "PendingPartialWithdrawal":
obj = &ethpb.PendingPartialWithdrawal{}
case "Consolidation":
obj = &ethpb.Consolidation{}
case "SignedConsolidation":
obj = &ethpb.SignedConsolidation{}
case "PendingConsolidation":
obj = &ethpb.PendingConsolidation{}
case "ExecutionLayerWithdrawalRequest":
obj = &ethpb.ExecutionLayerWithdrawalRequest{}
default:
return nil, errors.New("type not found")
}
Expand Down

0 comments on commit e1cf4ea

Please sign in to comment.