mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
* Rename remaining "deposit receipt" to "deposit request" * Add changelog entry --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
17 lines
454 B
Go
17 lines
454 B
Go
package state_native
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v5/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
|
|
}
|