version

package
v0.0.0-...-376a440 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainNetChainID uint32 = 1024
	TestNetChainID uint32 = 1023
)

ChainIDs

Variables

This section is empty.

Functions

func InitChainConf

func InitChainConf(conf *config.Config)

InitChainConf ...

func IsFork3_0_10

func IsFork3_0_10(num int64) bool

IsFork3_0_10 ...

func IsFork3_1_0

func IsFork3_1_0(num int64) bool

IsFork3_1_0 ...

func IsFork3_3_0

func IsFork3_3_0(num int64) bool

IsFork3_3_0 ...

func IsFork3_3_1

func IsFork3_3_1(num int64) bool

IsFork3_3_1 ...

Types

type ChainConfig

type ChainConfig struct {
	Block3_0_10 int64
	Block3_1_0  int64
	Block3_3_0  int64
	Block3_3_1  int64
}

ChainConfig ...

type Rules

type Rules struct {
	IsFork3_0_10 bool `json:"is_fork3_0_10"`
	IsFork3_1_0  bool `json:"is_fork3_1_0"`
	IsFork3_3_0  bool `json:"is_fork3_3_0"`
	IsFork3_3_1  bool `json:"is_fork3_3_1"`
}

Rules wraps original IsXxx functions

func NewRules

func NewRules(num int64) *Rules

NewRules create Rules for each block

Jump to

Keyboard shortcuts

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