mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
17 lines
453 B
Go
17 lines
453 B
Go
package state_native
|
|
|
|
import (
|
|
"github.com/OffchainLabs/prysm/v7/runtime/version"
|
|
)
|
|
|
|
// DepositRequestsStartIndex is used for returning the deposit requests start index which is used for eip6110
|
|
func (b *BeaconState) DepositRequestsStartIndex() (uint64, error) {
|
|
if b.version < version.Electra {
|
|
return 0, errNotSupported("DepositRequestsStartIndex", b.version)
|
|
}
|
|
b.lock.RLock()
|
|
defer b.lock.RUnlock()
|
|
|
|
return b.depositRequestsStartIndex, nil
|
|
}
|