params

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Modified from go-ethereum under GNU Lesser General Public License

Index

Constants

View Source
const (
	VersionMajor = 1          // Major version component of the current release
	VersionMinor = 9          // Minor version component of the current release
	VersionPatch = 0          // Patch version component of the current release
	VersionMeta  = "unstable" // Version metadata to append to the version string
)

Variables

View Source
var (
	DenomsValue = Denoms{
		Wei:  new(big.Int).SetUint64(1),
		GWei: new(big.Int).SetUint64(1000000000),
	}
	GCallValueTransfer = new(big.Int).SetUint64(9000)
	GtxxShardCost      = GCallValueTransfer // x-shard tx deposit gas

	DefaultStateDBGasLimit = new(big.Int).SetUint64(3141592)

	DefaultStartGas = new(big.Int).SetUint64(100 * 1000)
	DefaultGasPrice = new(big.Int).Mul(new(big.Int).SetUint64(10), DenomsValue.GWei)
)
View Source
var (
	DefaultByzantium = ethParams.ChainConfig{
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		EIP150Block:    big.NewInt(0),
		EIP155Block:    big.NewInt(0),
		EIP158Block:    big.NewInt(0),
		DAOForkBlock:   big.NewInt(0),
		ByzantiumBlock: big.NewInt(0),
	}
)
View Source
var MainnetBootnodes = []string{

	"enode://534fb1d7efa75eb4fb0a81ca25f32c6d70e2cec01d9d3c64a972b5913cd18fc2fee8cc8f964abb648cd6ed25afe81629ba9953cc10df5c7d840197db1e4c5fef@54.203.168.137:38291",
	"enode://3f750f788fe5adbf11cead375c147bc9ad486549ae3adcc9f24efc0189e1bf4e09280fa2f9511b50425c1ea3a27038c21553c709098fb2b593e1b3ff25da758b@54.70.162.141:38291",
	"enode://a66afe1eb473a4dd294096f95da0446459cbfb01e71651a5c98426ec48e12dc046993109b0ad61aa6d9b773afa319870c0352c91073b4341b4497b8a16b4c4da@52.11.34.67:38291",
}

MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the main quarkchain network.

View Source
var Version = func() string {
	return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
}()

Version holds the textual version string.

View Source
var VersionWithMeta = func() string {
	v := Version
	if VersionMeta != "" {
		v += "-" + VersionMeta
	}
	return v
}()

VersionWithMeta holds the textual version string including the metadata.

Functions

func ArchiveVersion

func ArchiveVersion(gitCommit string) string

ArchiveVersion holds the textual version string used for Geth archives. e.g. "1.8.11-dea1ce05" for stable releases, or

"1.8.13-unstable-21c059b6" for unstable releases

func VersionWithCommit

func VersionWithCommit(gitCommit string) string

Types

type Denoms

type Denoms struct {
	Wei  *big.Int
	GWei *big.Int
}

Jump to

Keyboard shortcuts

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