Documentation
¶
Index ¶
- type ChainCache
- func (c *ChainCache) BestBlockHeight() uint64
- func (c *ChainCache) Close()
- func (c *ChainCache) FindAccountByAlias(ctx context.Context, alias string) (*account.Account, error)
- func (c *ChainCache) FindAssetByAlias(alias string) (*asset.Asset, error)
- func (c *ChainCache) GetChain() *protocol.Chain
- func (c *ChainCache) ListAssets(address string) map[string]uint64
- func (c *ChainCache) ListTransactions(address, assetID string) []*query.AnnotatedTx
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 (*ChainCache) BestBlockHeight ¶
func (c *ChainCache) BestBlockHeight() uint64
func (*ChainCache) Close ¶
func (c *ChainCache) Close()
func (*ChainCache) FindAccountByAlias ¶
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
Click to show internal directories.
Click to hide internal directories.