blockprocessor

package
v0.0.0-...-d990fe8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockProcessor

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

func NewBlockProcessor

func NewBlockProcessor(w *wallet.Wallet, c *rpcclient.Client, conf *config.Config) *BlockProcessor

func (*BlockProcessor) GetSyncStatus

func (bp *BlockProcessor) GetSyncStatus() SyncStatus

func (*BlockProcessor) Loop

func (bp *BlockProcessor) Loop()

func (*BlockProcessor) PersistChainState

func (bp *BlockProcessor) PersistChainState()

func (*BlockProcessor) ReadChainState

func (bp *BlockProcessor) ReadChainState()

func (*BlockProcessor) UpdateClient

func (bp *BlockProcessor) UpdateClient(c *rpcclient.Client)

type ChainIndex

type ChainIndex []*chainhash.Hash

func (ChainIndex) FindBlock

func (activeChain ChainIndex) FindBlock(hash *chainhash.Hash) int

type SyncStatus

type SyncStatus struct {
	Connected   bool
	Synced      bool
	Syncing     bool
	SyncHeight  int
	TipHeight   int
	HeaderQueue int
}

Jump to

Keyboard shortcuts

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