Versions in this module Expand all Collapse all v0 v0.2.0 May 11, 2026 Changes in this version + const StakePubkeyIndexFileName + func BankhashConfirmedForSlot(slot uint64, bankHash solana.Hash) int + func BlockHeight() uint64 + func CalcUnixTimeForClockSysvar() bool + func ClearEpochStakes(epoch uint64) + func ClearEpochVoteStateSnapshots() + func ClearPendingStakePubkeys() + func CompactStakePubkeyIndex(accountsDbDir string) error + func DeleteVoteCacheItem(pubkey solana.PublicKey) + func DeserializeAndLoadEpochStakes(data []byte) (uint64, error) + func EnqueuePendingStakePubkey(pubkey solana.PublicKey) + func Epoch() uint64 + func EpochAuthorizedVoters() *epochstakes.EpochAuthorizedVotersCache + func EpochStakes(epoch uint64) map[solana.PublicKey]uint64 + func EpochStakesVoteAccts(epoch uint64) map[solana.PublicKey]*epochstakes.VoteAccount + func EpochTotalStake(epoch uint64) uint64 + func EpochVoteStateSnapshot(epoch uint64) map[solana.PublicKey]*sealevel.VoteStateVersions + func FlushPendingStakePubkeys(accountsDbDir string) (int, error) + func GetAllCachedEpochs() []uint64 + func HasEpochStakes(epoch uint64) bool + func HasForkChoice() bool + func IncrTransactionCount(num uint64) + func LatestBlockHash() [32]byte + func LeaderForSlot(slot uint64) (solana.PublicKey, bool) + func LoadStakePubkeyIndex(accountsDbDir string) ([]accountsdb.StakeIndexEntry, error) + func ManageLeaderSchedule() bool + func PutEpochAuthorizedVoter(voteAcct solana.PublicKey, authorizedVoter solana.PublicKey) + func PutEpochStakesEntry(epoch uint64, pubkey solana.PublicKey, stake uint64, ...) + func PutEpochTotalStake(epoch uint64, totalStake uint64) + func PutEpochVoteStateSnapshot(epoch uint64, snapshot map[solana.PublicKey]*sealevel.VoteStateVersions) + func PutSlotConfirmed(slot uint64) + func PutVoteCacheItem(pubkey solana.PublicKey, voteState *sealevel.VoteStateVersions) + func SerializeEpochStakes(epoch uint64) ([]byte, error) + func SetBlockHeight(blockHeight uint64) + func SetCalcUnixTimeForClockSysvar(calcUnixTime bool) + func SetEpoch(epoch uint64) + func SetEpochAuthorizedVoters(cache *epochstakes.EpochAuthorizedVotersCache) + func SetForkChoice(forkChoice *forkchoice.ForkChoiceService) + func SetLatestBlockHash(blockHash [32]byte) + func SetLeaderSchedule(ls *leaderschedule.LeaderSchedule) + func SetManageLeaderSchedule(manageLeaderSchedule bool) + func SetSlot(slot uint64) + func Slot() uint64 + func SlotConfirmed(slot uint64) bool + func StakeForVoteAcct(epoch uint64, voteAcct solana.PublicKey) uint64 + func StreamStakeAccounts(acctsDb *accountsdb.AccountsDb, slot uint64, ...) (int, error) + func SubmitBlockToForkChoiceService(slot uint64, txs []*solana.Transaction) + func TransactionCount() uint64 + func VoteCache() map[solana.PublicKey]*sealevel.VoteStateVersions + func VoteCacheItem(pubkey solana.PublicKey) *sealevel.VoteStateVersions + func VoteCacheSnapshot() map[solana.PublicKey]*sealevel.VoteStateVersions + type GlobalCtx struct + func (globctx *GlobalCtx) BlockHeight() uint64 + func (globctx *GlobalCtx) Epoch() uint64 + func (globctx *GlobalCtx) IncrTransactionCount(num uint64) + func (globctx *GlobalCtx) LatestBlockhash() [32]byte + func (globctx *GlobalCtx) SetBlockHeight(blockHeight uint64) + func (globctx *GlobalCtx) SetEpoch(epoch uint64) + func (globctx *GlobalCtx) SetLatestBlockhash(blockhash [32]byte) + func (globctx *GlobalCtx) SetSlot(slot uint64) + func (globctx *GlobalCtx) Slot() uint64 + func (globctx *GlobalCtx) TransactionCount() uint64 v0.1.0-alpha.1 Jan 15, 2026