pkgstate

package
v0.6.0-beta.r6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Pkgs []keys.Uint256
}

func (*Block) Serial

func (self *Block) Serial() (ret []byte, e error)

type BlockGet

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

func (*BlockGet) Out

func (self *BlockGet) Out() *Block

func (*BlockGet) Unserial

func (self *BlockGet) Unserial(v []byte) (e error)

type Data

type Data struct {
	G2pkgs       map[keys.Uint256]*ZPkg
	Block        Block
	Dirty_G2pkgs map[keys.Uint256]bool
}

type OPkg

type OPkg struct {
	Z ZPkg
	O pkg.Pkg_O
}

type PkgGet

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

func (*PkgGet) Out

func (self *PkgGet) Out() *ZPkg

func (*PkgGet) Unserial

func (self *PkgGet) Unserial(v []byte) (e error)

type PkgState

type PkgState struct {
	Data
	// 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)

func (*PkgState) Force_del

func (self *PkgState) Force_del(id *keys.Uint256)

func (*PkgState) Force_transfer

func (self *PkgState) Force_transfer(id *keys.Uint256, to *keys.PKr)

func (*PkgState) GetPkg

func (self *PkgState) GetPkg(id *keys.Uint256) (pg *ZPkg)

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()

type ZPkg

type ZPkg struct {
	High uint64
	From keys.PKr
	Pack stx.PkgCreate
}

func (*ZPkg) Serial

func (self *ZPkg) Serial() (ret []byte, e error)

Jump to

Keyboard shortcuts

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