utxo

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtxoStore

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

func NewUtxoStore

func NewUtxoStore(utxoDB dbm.DB, utxoOutputDB dbm.DB, utxoOutputTokenDB dbm.DB) *UtxoStore

func (*UtxoStore) GetBlockTokenUtxoOutputSeq

func (u *UtxoStore) GetBlockTokenUtxoOutputSeq(blockHeight uint64) map[string]int64

func (*UtxoStore) GetMaxUtxoOutputSeq

func (u *UtxoStore) GetMaxUtxoOutputSeq(tokenId common.Address) int64

func (*UtxoStore) GetRandomUtxoOutputs

func (u *UtxoStore) GetRandomUtxoOutputs(counts int, tokenId common.Address) []*types.UTXOOutputData

func (*UtxoStore) GetUtxoOutput

func (u *UtxoStore) GetUtxoOutput(tokenId common.Address, seq uint64) (*types.UTXOOutputData, error)

func (*UtxoStore) GetUtxoOutputs

func (u *UtxoStore) GetUtxoOutputs(seqs []uint64, tokenId common.Address) ([]*types.UTXOOutputData, error)

func (*UtxoStore) HaveTxKeyimgAsSpent

func (u *UtxoStore) HaveTxKeyimgAsSpent(kImg *lctypes.Key) bool

func (*UtxoStore) SaveKImages

func (u *UtxoStore) SaveKImages(kImgs []*lctypes.Key) error

func (*UtxoStore) SaveUtxo

func (u *UtxoStore) SaveUtxo(kImgs []*lctypes.Key, utxoOutputs []*types.UTXOOutputData, blockHeight uint64) error

func (*UtxoStore) SaveUtxoOutputs

func (u *UtxoStore) SaveUtxoOutputs(utxoOutputs []*types.UTXOOutputData) error

func (*UtxoStore) SetLogger

func (u *UtxoStore) SetLogger(logger log.Logger)

Jump to

Keyboard shortcuts

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