package
0.7.0
Repository: https://github.com/siafoundation/coreutils.git
Documentation: pkg.go.dev

# Functions

ForEachHostAnnouncement calls fn on each host announcement in a block.
ForEachV2HostAnnouncement calls fn on each v2 host announcement in a block.
Mainnet returns the network parameters and genesis block for the mainnet Sia blockchain.
NewDBStore creates a new DBStore using the provided database.
NewManager returns a Manager initialized with the provided Store and State.
NewMemDB returns an in-memory DB for use with DBStore.
TestnetAnagami returns the chain parameters and genesis block for the "Anagami" testnet chain.
TestnetZen returns the chain parameters and genesis block for the "Zen" testnet chain.
WithLog sets the logger used by the Manager.

# Variables

ErrFutureBlock is returned when a block's timestamp is too far in the future.

# Structs

An ApplyUpdate reflects the changes to the blockchain resulting from the addition of a block.
DBStore implements Store using a key-value database.
No description provided by the author
A Manager tracks multiple blockchains and identifies the best valid chain.
MemDB implements DB with an in-memory map.
No description provided by the author
A RevertUpdate reflects the changes to the blockchain resulting from the removal of a block.

# Interfaces

A DB is a generic key-value database.
A DBBucket is a set of key-value pairs.
A Store durably commits Manager-related data to storage.

# Type aliases

A ManagerOption sets an optional parameter on a Manager.
No description provided by the author
No description provided by the author