mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Add Gloas execution payload header processing and state integration Implement Gloas fork support in consensus-types/blocks Add Gloas state fields to beacon state implementation
24 lines
847 B
Go
24 lines
847 B
Go
package operations
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v7/consensus-types/blocks"
|
|
"github.com/OffchainLabs/prysm/v7/consensus-types/interfaces"
|
|
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
|
|
"github.com/OffchainLabs/prysm/v7/runtime/version"
|
|
common "github.com/OffchainLabs/prysm/v7/testing/spectest/shared/common/operations"
|
|
)
|
|
|
|
func blockWithSignedExecutionPayloadBid(blockSSZ []byte) (interfaces.SignedBeaconBlock, error) {
|
|
var block ethpb.BeaconBlockGloas
|
|
if err := block.UnmarshalSSZ(blockSSZ); err != nil {
|
|
return nil, err
|
|
}
|
|
return blocks.NewSignedBeaconBlock(ðpb.SignedBeaconBlockGloas{Block: &block})
|
|
}
|
|
|
|
func RunExecutionPayloadBidTest(t *testing.T, config string) {
|
|
common.RunExecutionPayloadBidTest(t, config, version.String(version.Gloas), blockWithSignedExecutionPayloadBid, sszToState)
|
|
}
|