light

package
v0.9.0-review-1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: GPL-3.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJob

func AddJob(spec string, run RunFunc) *cron.Cron

Types

type BlockDelNil

type BlockDelNil struct {
	Num uint64
	Nil keys.Uint256
}

type BlockOut

type BlockOut struct {
	Num  uint64
	Outs []txtool.Out
}

type BlockOutResp

type BlockOutResp struct {
	CurrencyNum uint64
	BlockOuts   []BlockOut
}

type LightNode

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

func NewLightNode

func NewLightNode(dbPath string, txPool *core.TxPool) (lightNode *LightNode)

func (*LightNode) CheckNil

func (self *LightNode) CheckNil(Nils []keys.Uint256, start uint64, end uint64) (delNils []BlockDelNil, e error)

func (*LightNode) CurrentLight

func (self *LightNode) CurrentLight() *LightNode

func (*LightNode) GetOutsByPKr

func (self *LightNode) GetOutsByPKr(pkrs []keys.PKr, start, end uint64) (br BlockOutResp, e error)

type RunFunc

type RunFunc func()

type RunJob

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

func (*RunJob) Run

func (r *RunJob) Run()

Jump to

Keyboard shortcuts

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