Versions in this module Expand all Collapse all v0 v0.2.0 May 11, 2026 Changes in this version + const CurrentStateSchemaVersion + const HistoryFileName + const MaxHistoryEntries + const ShutdownReasonCompleted + const ShutdownReasonError + const ShutdownReasonLeaderSchedule + const ShutdownReasonNormal + const ShutdownReasonStall + const StateFileName + func AppendHistory(accountsDbDir string, entry StateHistoryEntry) error + func DeleteState(accountsDbDir string) error + func PruneHistory(accountsDbDir string) error + func RecordBootstrap(accountsDbDir string, slot uint64, ...) error + func RecordCorrupted(accountsDbDir string, slot uint64, ...) error + func RecordRebuild(accountsDbDir string, slot uint64, ...) error + func RecordResume(accountsDbDir string, slot uint64, ...) error + func RecordShutdown(accountsDbDir string, slot uint64, ...) error + func ValidateAccountsDbArtifacts(accountsDbDir string) error + type BankhashGetter interface + GetBankHashForSlot func(slot uint64) ([]byte, error) + type BlockhashEntry struct + Blockhash string + LamportsPerSignature uint64 + type HistoryEvent string + const HistoryEventBootstrap + const HistoryEventCorrupted + const HistoryEventRebuild + const HistoryEventResume + const HistoryEventShutdown + type ManifestFeeRateGovernorSeed struct + BurnPercent byte + MaxLamportsPerSignature uint64 + MinLamportsPerSignature uint64 + TargetLamportsPerSignature uint64 + TargetSignaturesPerSlot uint64 + type MithrilState struct + BuildCompleted time.Time + BuildMode string + BuildStartedAt time.Time + Cluster string + ComputedEpochStakes map[uint64]string + CorruptionDetectedAt time.Time + CorruptionReason string + CurrentRunID string + FullSnapshot *SnapshotInfo + GenesisHash string + IncrSnapshot *SnapshotInfo + LastAcctsLtHash string + LastBankhash string + LastBlockHeight uint64 + LastBlockhash string + LastCapitalization uint64 + LastCommit string + LastEpoch uint64 + LastEvictedBlockhash string + LastInflationFoundation float64 + LastInflationFoundationTerm float64 + LastInflationInitial float64 + LastInflationTaper float64 + LastInflationTerminal float64 + LastLamportsPerSignature uint64 + LastNumSignatures uint64 + LastPrevLamportsPerSig uint64 + LastRecentBlockhashes []BlockhashEntry + LastRunAt time.Time + LastRunID string + LastShutdownAt time.Time + LastShutdownReason string + LastSlot uint64 + LastSlotHashes []SlotHashEntry + LastSlotsPerYear float64 + LastWriterBranch string + LastWriterCommit string + LastWriterVersion string + ManifestAcctsLtHash string + ManifestBlockHeight uint64 + ManifestCapitalization uint64 + ManifestEpochAcctsHash string + ManifestEpochAuthorizedVoters map[string][]string + ManifestEpochStakes map[uint64]string + ManifestEvictedBlockhash string + ManifestFeeRateGovernor *ManifestFeeRateGovernorSeed + ManifestInflationFoundation float64 + ManifestInflationFoundationTerm float64 + ManifestInflationInitial float64 + ManifestInflationTaper float64 + ManifestInflationTerminal float64 + ManifestLamportsPerSignature uint64 + ManifestParentBankhash string + ManifestParentSlot uint64 + ManifestRecentBlockhashes []BlockhashEntry + ManifestSignatureCount uint64 + ManifestSlotsPerYear float64 + ManifestTransactionCount uint64 + ParentRunID string + RootRunID string + SnapshotEpoch uint64 + SnapshotSlot uint64 + Stage string + StateSchemaVersion uint32 + func CheckAndLoadValidState(accountsDbDir string) (*MithrilState, error) + func LoadState(accountsDbDir string) (*MithrilState, error) + func NewReadyState(snapshotSlot uint64, snapshotEpoch uint64, fullSnapshotPath string, ...) *MithrilState + func NewReadyStateWithOpts(opts NewReadyStateOpts) *MithrilState + func (s *MithrilState) ClearManifestEpochStakes() + func (s *MithrilState) GetCurrentSlot() uint64 + func (s *MithrilState) GetResumeSlot() uint64 + func (s *MithrilState) HasResumeData() bool + func (s *MithrilState) IsCorrupted() bool + func (s *MithrilState) IsReady() bool + func (s *MithrilState) IsStale(latestSlot uint64, threshold uint64) bool + func (s *MithrilState) MarkCorrupted(accountsDbDir string, reason string) error + func (s *MithrilState) Save(accountsDbDir string) error + func (s *MithrilState) SetClusterInfo(cluster, genesisHash string) + func (s *MithrilState) UpdateLastSlot(accountsDbDir string, slot uint64, bankhash []byte) error + func (s *MithrilState) UpdateOnShutdown(accountsDbDir string, slot uint64, bankhash []byte, ctx *ShutdownContext) error + func (s *MithrilState) ValidateAgainstBankhashDB(bankhashDb BankhashGetter) error + func (s *MithrilState) ValidateGenesisHash(expectedGenesisHash string) error + type NewReadyStateOpts struct + BuildMode string + BuildStartedAt time.Time + Cluster string + FullSnapshotPath string + GenesisHash string + IncrBaseSlot uint64 + IncrSlot uint64 + IncrSnapshotPath string + SnapshotEpoch uint64 + SnapshotSlot uint64 + WriterCommit string + WriterVersion string + type ShutdownContext struct + AcctsLtHash string + BlockHeight uint64 + Capitalization uint64 + ComputedEpochStakes map[uint64][]byte + Epoch uint64 + EvictedBlockhash string + InflationFoundation float64 + InflationFoundationTerm float64 + InflationInitial float64 + InflationTaper float64 + InflationTerminal float64 + LamportsPerSignature uint64 + LastBlockhash string + NumSignatures uint64 + PrevLamportsPerSig uint64 + RecentBlockhashes []BlockhashEntry + RunID string + ShutdownReason string + SlotHashes []SlotHashEntry + SlotsPerYear float64 + WriterBranch string + WriterCommit string + WriterVersion string + type SlotHashEntry struct + Hash string + Slot uint64 + type SnapshotInfo struct + BaseSlot uint64 + Path string + Slot uint64 + type StateHistoryEntry struct + Bankhash string + Branch string + Commit string + Event HistoryEvent + Reason string + RunID string + Slot uint64 + Timestamp time.Time + Version string + func GetRecentHistory(accountsDbDir string, n int) ([]StateHistoryEntry, error) + func LoadHistory(accountsDbDir string) ([]StateHistoryEntry, error) v0.1.0-alpha.1 Jan 15, 2026