cfm

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// security block difference between main block chain and side block chain
	SecBlkDiff = 50
	//SecBlkDiff = 3
	MaxUint64  = uint64(^(uint64(0)))
	SecPowBlks = 12
)

Variables

View Source
var (
	ErrNullBlk = errors.New("can not read block")
)

Functions

func InitCFM

func InitCFM(bc *core.BlockChain)

Types

type BlkStatus

type BlkStatus struct {
	BlkNumber uint64
	Stable    bool
}

type CFM

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

func GetCFM

func GetCFM() *CFM

func (*CFM) GetMaxStableBlkNumber

func (c *CFM) GetMaxStableBlkNumber() uint64

type SuffixBlkStatic

type SuffixBlkStatic struct {
	SuffixBlockTrusted    uint64
	SuffixBlockNonTrusted uint64
}

Jump to

Keyboard shortcuts

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