mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
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:
@@ -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()
|
||||
|
||||
@@ -102,6 +102,7 @@ type ExecutionData interface {
|
||||
ssz.Unmarshaler
|
||||
ssz.HashRoot
|
||||
IsNil() bool
|
||||
IsBlinded() bool
|
||||
Proto() proto.Message
|
||||
ParentHash() []byte
|
||||
FeeRecipient() []byte
|
||||
|
||||
Reference in New Issue
Block a user