mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
* renaming functions and fields based on consensus changes * execution api rename * fixing test * reverting spectests changes, it should be changed with new version * reverting temporarily * revert exclusions
22 lines
631 B
Go
22 lines
631 B
Go
package state_native
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state/state-native/types"
|
|
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
)
|
|
|
|
// SetDepositRequestsStartIndex for the beacon state. Updates the DepositRequestsStartIndex
|
|
func (b *BeaconState) SetDepositRequestsStartIndex(index uint64) error {
|
|
if b.version < version.Electra {
|
|
return errNotSupported("SetDepositRequestsStartIndex", b.version)
|
|
}
|
|
|
|
b.lock.Lock()
|
|
defer b.lock.Unlock()
|
|
|
|
b.depositRequestsStartIndex = index
|
|
b.markFieldAsDirty(types.DepositRequestsStartIndex)
|
|
b.rebuildTrie[types.DepositRequestsStartIndex] = true
|
|
return nil
|
|
}
|