Documentation ¶
Overview ¶
Package ledger provides useful utilities concerning ledgers within hcnet, specifically as a central location to store a cached snapshot of the state of both aurora's and hcnet-core's views of the ledger. This package is intended to be at the lowest levels of aurora's dependency tree, please keep it free of dependencies to other aurora packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State struct { CoreLatest int32 `db:"core_latest"` HistoryLatest int32 `db:"history_latest"` HistoryElder int32 `db:"history_elder"` ExpHistoryLatest uint32 `db:"exp_history_latest"` }
State represents a snapshot of both aurora's and hcnet-core's view of the ledger.
func CurrentState ¶
func CurrentState() State
CurrentState returns the cached snapshot of ledger state
Click to show internal directories.
Click to hide internal directories.