state

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtxoViewpoint added in v0.3.0

type UtxoViewpoint struct {
	Entries map[bc.Hash]*storage.UtxoEntry
}

UtxoViewpoint represents a view into the set of unspent transaction outputs

func NewUtxoViewpoint added in v0.3.0

func NewUtxoViewpoint() *UtxoViewpoint

NewUtxoViewpoint returns a new empty unspent transaction output view.

func (*UtxoViewpoint) ApplyBlock added in v0.3.0

func (view *UtxoViewpoint) ApplyBlock(block *bc.Block) error

func (*UtxoViewpoint) ApplyTransaction added in v0.3.0

func (view *UtxoViewpoint) ApplyTransaction(block *bc.Block, tx *bc.Tx) error

func (*UtxoViewpoint) DetachBlock added in v0.3.0

func (view *UtxoViewpoint) DetachBlock(block *bc.Block) error

func (*UtxoViewpoint) DetachTransaction added in v0.3.0

func (view *UtxoViewpoint) DetachTransaction(tx *bc.Tx) error

func (*UtxoViewpoint) HasUtxo added in v0.3.0

func (view *UtxoViewpoint) HasUtxo(hash *bc.Hash) bool

Jump to

Keyboard shortcuts

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