params

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bech32PrefixAccAddr  = "htdf"
	Bech32PrefixAccPub   = "htdfpub"
	Bech32PrefixValAddr  = "htdfvaloper"
	Bech32PrefixValPub   = "htdfvaloperpub"
	Bech32PrefixConsAddr = "htdfvalcons"
	Bech32PrefixConsPub  = "htdfvalconspub"
)
View Source
const (
	DefaultMsgGas                 uint64 = 30000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions.
	DefaultMsgGasContractCreation uint64 = 60000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions.

	DefaultMinGasPrice = 100 //unit: satoshi

	DefaultTxGas = DefaultMsgGas
	TxGasLimit   = 7500000 // half of 15,000,000(Block Gas Limit in genesis.json)
)

evm gas estimation

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

Variables

View Source
var (
	MainnetChainConfig = &params.ChainConfig{
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(1),
		DAOForkBlock:        big.NewInt(2),
		DAOForkSupport:      true,
		EIP150Block:         big.NewInt(3),
		EIP150Hash:          common.HexToHash("0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0"),
		EIP155Block:         big.NewInt(4),
		EIP158Block:         big.NewInt(5),
		ByzantiumBlock:      big.NewInt(6),
		ConstantinopleBlock: big.NewInt(7),
	}
)
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

This section is empty.

Jump to

Keyboard shortcuts

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