Documentation ¶
Overview ¶
Package chainstate implements the hashchain state for the Fonero updater.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type ChainState ¶
type ChainState struct {
// contains filtered or unexported fields
}
ChainState holds the hashchain state for the Fonero updater.
func (*ChainState) EntryIsKnown ¶
func (cs *ChainState) EntryIsKnown(hashchainEntry string) bool
EntryIsKnown returns truf the given hashchainEntry is known and false otherwise.
func (*ChainState) Head ¶
func (cs *ChainState) Head() [32]byte
Head returns the hash of the last known hashchain entry.
Click to show internal directories.
Click to hide internal directories.