From aa4b919319ef7332538988d027c06e3d5cafe68e Mon Sep 17 00:00:00 2001 From: Cal Bera Date: Tue, 30 Jul 2024 12:45:44 -0400 Subject: [PATCH] build --- mod/node-api/backend/backend.go | 8 ++++---- mod/node-api/backend/types.go | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mod/node-api/backend/backend.go b/mod/node-api/backend/backend.go index b9b37c3788..33c72c8c96 100644 --- a/mod/node-api/backend/backend.go +++ b/mod/node-api/backend/backend.go @@ -39,8 +39,8 @@ type Backend[ BeaconBlockBodyT any, BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT], BeaconStateT BeaconState[ - BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT, ForkT, - ValidatorT, ValidatorsT, WithdrawalT, + BeaconStateT, BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT, + ForkT, ValidatorT, ValidatorsT, WithdrawalT, ], BeaconStateMarshallableT any, BlobSidecarsT any, @@ -77,8 +77,8 @@ func New[ BeaconBlockBodyT any, BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT], BeaconStateT BeaconState[ - BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT, ForkT, - ValidatorT, ValidatorsT, WithdrawalT, + BeaconStateT, BeaconBlockHeaderT, Eth1DataT, ExecutionPayloadHeaderT, + ForkT, ValidatorT, ValidatorsT, WithdrawalT, ], BeaconStateMarshallableT any, BlobSidecarsT any, diff --git a/mod/node-api/backend/types.go b/mod/node-api/backend/types.go index a00a321f9a..30ab4e9a64 100644 --- a/mod/node-api/backend/types.go +++ b/mod/node-api/backend/types.go @@ -65,12 +65,14 @@ type BeaconBlockHeader[BeaconBlockHeaderT any] interface { // BeaconState is the interface for the beacon state. type BeaconState[ - BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT], + T any, BeaconBlockHeaderT BeaconBlockHeader[BeaconBlockHeaderT], Eth1DataT, ExecutionPayloadHeaderT, ForkT, ValidatorT, ValidatorsT, WithdrawalT any, ] interface { constraints.SSZRootable + // Copy returns a copy of the key-value store. + Copy() T // SetSlot sets the slot on the beacon state. SetSlot(math.Slot) error