chaincache

package
v0.0.0-...-88ff46c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainCache

type ChainCache struct {
	sync.RWMutex

	BlockChain          map[bc.Hash]*types.Block
	TransactionsInput   map[string][]*query.AnnotatedInput
	TransactionsOutputs map[string][]*query.AnnotatedOutput
	// contains filtered or unexported fields
}

func NewChainCache

func NewChainCache(store *leveldb.Store, chain *protocol.Chain, wallet *w.Wallet) *ChainCache

func (*ChainCache) BestBlockHeight

func (c *ChainCache) BestBlockHeight() uint64

func (*ChainCache) Close

func (c *ChainCache) Close()

func (*ChainCache) FindAccountByAlias

func (c *ChainCache) FindAccountByAlias(ctx context.Context, alias string) (*account.Account, error)

func (*ChainCache) FindAssetByAlias

func (c *ChainCache) FindAssetByAlias(alias string) (*asset.Asset, error)

func (*ChainCache) GetChain

func (c *ChainCache) GetChain() *protocol.Chain

func (*ChainCache) ListAssets

func (c *ChainCache) ListAssets(address string) map[string]uint64

func (*ChainCache) ListTransactions

func (c *ChainCache) ListTransactions(address, assetID string) []*query.AnnotatedTx

Jump to

Keyboard shortcuts

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