light_ref

package
v0.7.0-hotfix.4-review Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDelayNumber

func GetDelayNumber(current uint64, chose uint64, delay uint64) (num uint64)

Types

type BlockChain

type BlockChain interface {
	GetCurrenHeader() *types.Header
	GetHeader(hash *common.Hash) *types.Header
	NewState(hash *common.Hash) *zstate.ZState
	GetTks() []keys.Uint512
	CashChose() *atomic.Value
	GetBlockByNumber(num uint64) *types.Block
	GetHeaderByNumber(num uint64) *types.Header
	GetDB() serodb.Database
}

type Ref

type Ref struct {
	Bc BlockChain
}
var Ref_inst Ref

func (*Ref) GetDelayedNum

func (self *Ref) GetDelayedNum(delay uint64) (ret uint64)

func (*Ref) GetState

func (self *Ref) GetState() (ret *zstate.ZState)

func (*Ref) SetBC

func (self *Ref) SetBC(bc BlockChain)

Jump to

Keyboard shortcuts

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