txout

package
v0.0.0-...-1f4b7d8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

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.

func NewDB

func NewDB(path string) (*db, error)

func UseLogger

func UseLogger(logger btclog.Logger)

UseLogger uses a specified Logger to output package logging info. This should be used in preference to SetLogWriter if the caller is also using btclog.

Types

type DB

type DB interface {
	GetHeight() (int32, error)
	SetHeight(int32) error
	Get(key []byte) (*wire.TxOut, error)
	Put(key []byte, tx *wire.TxOut) error
	PutBatch([]KeyTx) error
	Close() error
}

type Explorer

type Explorer struct {
	// contains filtered or unexported fields
}

func NewExplorer

func NewExplorer(db DB, chain *blockchain.BlockChain, batchSize int) *Explorer

func (*Explorer) GetType

func (e *Explorer) GetType() string

func (*Explorer) Start

func (e *Explorer) Start()

func (*Explorer) Stop

func (e *Explorer) Stop()

func (*Explorer) WaitForShutdown

func (e *Explorer) WaitForShutdown()

type KeyTx

type KeyTx struct {
	Key []byte
	Tx  *wire.TxOut
}

Jump to

Keyboard shortcuts

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