Process blind withdrawals (#11995)

* Update head before block proposal

* fix e2e runs

* Can process blind withdrwals

* Rm bad change

* Should be in process payload header

* Version check

* Compare roots

* Typo

* Remove redundant checks

* Add tests

* Rm errors

---------

Co-authored-by: nisdas <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terencechain
2023-02-16 23:49:30 -08:00
committed by GitHub
parent c7f0a94b19
commit a6dd561b9d
10 changed files with 508 additions and 37 deletions

View File

@@ -36,6 +36,11 @@ func (e executionPayload) IsNil() bool {
return e.p == nil
}
// IsBlinded returns true if the underlying data is blinded.
func (e executionPayload) IsBlinded() bool {
return false
}
// MarshalSSZ --
func (e executionPayload) MarshalSSZ() ([]byte, error) {
return e.p.MarshalSSZ()
@@ -192,6 +197,11 @@ func (e executionPayloadHeader) IsNil() bool {
return e.p == nil
}
// IsBlinded returns true if the underlying data is a header.
func (e executionPayloadHeader) IsBlinded() bool {
return true
}
// MarshalSSZ --
func (e executionPayloadHeader) MarshalSSZ() ([]byte, error) {
return e.p.MarshalSSZ()
@@ -377,6 +387,11 @@ func (e executionPayloadCapella) IsNil() bool {
return e.p == nil
}
// IsBlinded returns true if the underlying data is blinded.
func (e executionPayloadCapella) IsBlinded() bool {
return false
}
// MarshalSSZ --
func (e executionPayloadCapella) MarshalSSZ() ([]byte, error) {
return e.p.MarshalSSZ()
@@ -534,6 +549,11 @@ func (e executionPayloadHeaderCapella) IsNil() bool {
return e.p == nil
}
// IsBlinded returns true if the underlying data is blinded.
func (e executionPayloadHeaderCapella) IsBlinded() bool {
return true
}
// MarshalSSZ --
func (e executionPayloadHeaderCapella) MarshalSSZ() ([]byte, error) {
return e.p.MarshalSSZ()

View File

@@ -102,6 +102,7 @@ type ExecutionData interface {
ssz.Unmarshaler
ssz.HashRoot
IsNil() bool
IsBlinded() bool
Proto() proto.Message
ParentHash() []byte
FeeRecipient() []byte