light

package
v1.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: GPL-3.0 Imports: 15 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 BlockOut

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

type BlockOutResp

type BlockOutResp struct {
	CurrentNum uint64
	BlockOuts  []BlockOut
}

type LightNode

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

func NewLightNode

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

func (*LightNode) CheckNil

func (self *LightNode) CheckNil(Nils []keys.Uint256) (nilResps []NilValue, 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 NilValue

type NilValue struct {
	Nil    keys.Uint256
	Num    uint64
	TxHash keys.Uint256
	TxFee  big.Int
}

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