version

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README


const BeforeHardForkVersion = 0

//If height < NextHardForkHeight,run currentHardForkVersion
//else run NextHardForkVersion
//const PreHardForkHeight = 85000
//const PreHardForeVersion = 2
//const NextHardForkHeight = 1300000
//const NextHardForkVersion = 3

// HeightArray[3]%txfilter.EpochBlocks must equal 0,because we will use this to construct tm-auth-table
//const HeightString = "10,20,30,200"
//const VersionString = "2,3,4,5"

//const PPChainAdmin = "0xb3d49259b486d04505b0b652ade74849c0b703c3"

//const PPChainPrivateAdmin = "0x121f5ef0aba86e258bfd9d6063b52774c1598adf"

//const Bigguy = "0x63859f245ba7c3c407a603a6007490b217b3ec5d"

//const EvmErrHardForkHeight = 3588000
//const EvmErrHardForkHeight = 5

//If we are in the version=4,we should remember all the
//pre-version code and per-version height
//and run the corresponding login to get the same state
//as the main network
//such
/*
const BeforeFirstHardForkVersion 0
const FirstHardForkHeight  400
const FirstHardForkVersion 1
const SecondHardForkHeight 800
const SecondHardForkVersion 2
const ThirdHardForkHeight  1200
const ThirdHardForkVersion  3
const NextHardForkHeight 1600
const NextHardForkVersion 4
*/

//upgrade node
/*
 The beginning version is `1`
 and we are in the height of 85000 hardforked first time
 which select 7 nodes.
 FirstHardForkVersion 2  FirstHardForkHeight 85000 From version 1 to 2


 We want to fix the AddBalanceBug at version 3 at height 1000000
 from `ws.state.AddBalance(beneficiary, bonusAverage)`
 to `ws.state.AddBalance(beneficiary, bonusSpecify)`
 SecondHardForkVersion 3 SecondHardForkHeight 1000000 From version 2 to 3
*/

Documentation

Index

Constants

View Source
const Fix = 0

Fix version component of the current release

View Source
const Major = 0

Major version component of the current release

View Source
const Minor = 6

Minor version component of the current release

Variables

View Source
var (
	// Version is the full version string
	Version = "1.5.0"

	// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse --short HEAD)"
	GitCommit string

	HeightArray []int64

	VersionArray []int64

	PPChainAdmin string

	PPChainPrivateAdmin string

	Bigguy string

	EvmErrHardForkHeight int64

	HeightString string

	VersionString string
)

Functions

func InitConfig added in v1.4.7

func InitConfig()

func LoadDefaultConfig added in v1.4.7

func LoadDefaultConfig(c conf)

func LoadDevelopConfig added in v1.4.7

func LoadDevelopConfig(c conf)

func LoadProductionConfig added in v1.4.7

func LoadProductionConfig(c conf)

func LoadStagingConfig added in v1.4.7

func LoadStagingConfig(c conf)

func ReadConfig added in v1.4.7

func ReadConfig(fileName string) (conf, error)

Types

type VersionData added in v1.4.7

type VersionData struct {
	HeightString         string `yaml:"height"`
	VersionString        string `yaml:"version"`
	PPCAdmin             string `yaml:"ppcadmin"`
	BigGuy               string `yaml:"bigguy"`
	PPChainPrivateAdmin  string `yaml:"ppchainprivateadmin"`
	EvmErrHardForkHeight int64  `yaml:"evmerrhardforkheight"`
}

Jump to

Keyboard shortcuts

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