params

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaximumExtraDataSize uint64 = 32    // Maximum size extra data may be after Genesis.
	EpochDuration        uint64 = 30000 // Duration between proof-of-stack epochs
	MaxCodeSize                 = 32768 // Maximum bytecode to permit for a contract
)
View Source
const (
	// BloomBitsBlocks is the number of blocks a single bloom bit section vector
	// contains.
	BloomBitsBlocks uint64 = 4096
)

Variables

View Source
var (
	RewordPrikey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f292")
	Address         = crypto.PubkeyToAddress(RewordPrikey.PublicKey)
)
View Source
var (
	DefaultChainId     = 1
	WorkingChainId     = 1
	DefaultChainConfig = &ChainConfig{big.NewInt(1)}
	TestChainConfig    = &ChainConfig{ChainId: big.NewInt(101)}
)

Functions

This section is empty.

Types

type ChainConfig

type ChainConfig struct {
	ChainId *big.Int `json:"chainId"` // Chain id identifies the current chain and is used for replay protection
}

type ConfigCompatError

type ConfigCompatError struct {
	What string
	// block numbers of the stored and new configurations
	StoredConfig, NewConfig *big.Int
	// the block number to which the local chain must be rewound to correct the error
	RewindTo uint64
}

ConfigCompatError is raised if the locally-stored blockchain is initialised with a ChainConfig that would alter the past.

func (*ConfigCompatError) Error

func (err *ConfigCompatError) Error() string

Jump to

Keyboard shortcuts

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