prysm-pulse/beacon-chain/state/state-native/v3/setters_payload_header.go

14 lines
375 B
Go
Raw Normal View History

package v3
import ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
// SetLatestExecutionPayloadHeader for the beacon state.
func (b *BeaconState) SetLatestExecutionPayloadHeader(val *ethpb.ExecutionPayloadHeader) error {
b.lock.Lock()
defer b.lock.Unlock()
b.latestExecutionPayloadHeader = val
b.markFieldAsDirty(latestExecutionPayloadHeader)
return nil
}