explorer

package
v0.4.5-beta Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

The explorer module provides a glimpse into what the Sia network currently looks like.

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) (*Explorer, 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

Close closes the explorer.

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