explorer

package
v0.4.2-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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) Close

func (e *Explorer) Close() error

func (*Explorer) ExplorerStatus

func (e *Explorer) ExplorerStatus() modules.ExplorerStatus

Returns many pieces of readily available information

func (*Explorer) GetHashInfo

func (e *Explorer) GetHashInfo(hash []byte) (interface{}, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL