Documentation ¶
Index ¶
- type Explorer
- func (e *Explorer) BlockInfo(start types.BlockHeight, finish types.BlockHeight) ([]modules.ExplorerBlockData, error)
- func (e *Explorer) Close() error
- func (e *Explorer) ExplorerStatus() modules.ExplorerStatus
- func (e *Explorer) GetHashInfo(hash []byte) (interface{}, error)
- func (e *Explorer) ProcessConsensusChange(cc modules.ConsensusChange)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Explorer ¶
type Explorer struct {
// contains filtered or unexported fields
}
Basic structure to store the blockchain. Metadata may also be stored here in the future
func New ¶
func New(cs modules.ConsensusSet, persistDir string) (e *Explorer, err error)
New creates the internal data structures, and subscribes to consensus for changes to the blockchain
func (*Explorer) BlockInfo ¶
func (e *Explorer) BlockInfo(start types.BlockHeight, finish types.BlockHeight) ([]modules.ExplorerBlockData, error)
Returns a partial slice of our stored data on the blockchain. Data obtained from consensus updates
func (*Explorer) ExplorerStatus ¶
func (e *Explorer) ExplorerStatus() modules.ExplorerStatus
Returns many pieces of readily available information
func (*Explorer) GetHashInfo ¶
GetHashInfo returns sufficient data about the hash that was provided to do more extensive lookups
func (*Explorer) ProcessConsensusChange ¶
func (e *Explorer) ProcessConsensusChange(cc modules.ConsensusChange)
ProcessConsensusChange follows the most recent changes to the consensus set, including parsing new blocks and updating the utxo sets.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.