pkgstate

package
v0.9.0-review-3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OPkg

type OPkg struct {
	Z localdb.ZPkg
	O pkg.Pkg_O
}

type PkgState

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

func NewPkgState

func NewPkgState(tri tri.Tri, num uint64) (state PkgState)

func (*PkgState) Close

func (self *PkgState) Close(id *keys.Uint256, pkr *keys.PKr, key *keys.Uint256) (ret OPkg, e error)

func (*PkgState) Force_add

func (self *PkgState) Force_add(from *keys.PKr, pack *stx.PkgCreate) (e error)

func (*PkgState) Force_del

func (self *PkgState) Force_del(hash *keys.Uint256, close *stx.PkgClose) (e error)

func (*PkgState) Force_transfer

func (self *PkgState) Force_transfer(hash *keys.Uint256, trans *stx.PkgTransfer) (e error)

func (*PkgState) GetPkgByHash

func (self *PkgState) GetPkgByHash(hash *keys.Uint256) (ret *localdb.ZPkg)

func (*PkgState) GetPkgById

func (self *PkgState) GetPkgById(id *keys.Uint256) (ret *localdb.ZPkg)

func (*PkgState) GetPkgHashes

func (state *PkgState) GetPkgHashes() (ret []keys.Uint256)

func (*PkgState) RecordState

func (self *PkgState) RecordState(putter serodb.Putter, hash *keys.Uint256)

func (*PkgState) Revert

func (self *PkgState) Revert(revid int)

func (*PkgState) Snapshot

func (self *PkgState) Snapshot(revid int)

func (*PkgState) Transfer

func (self *PkgState) Transfer(id *keys.Uint256, pkr *keys.PKr, to *keys.PKr) (e error)

func (*PkgState) Update

func (self *PkgState) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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