Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Forks = map[string]*params.ChainConfig{ "Frontier": { ChainID: big.NewInt(1), }, "Homestead": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), }, "EIP150": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), }, "EIP158": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), }, "Byzantium": { 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), }, "Constantinople": { 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), ConstantinopleBlock: big.NewInt(0), }, "FrontierToHomesteadAt5": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(5), }, "HomesteadToEIP150At5": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(5), }, "HomesteadToDaoAt5": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), DAOForkBlock: big.NewInt(5), DAOForkSupport: true, }, "EIP158ToByzantiumAt5": { ChainID: big.NewInt(1), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(5), }, }
Functions ¶
func MakePreState ¶
Types ¶
type BlockTest ¶
type BlockTest struct {
// contains filtered or unexported fields
}
func (*BlockTest) UnmarshalJSON ¶
type DifficultyTest ¶
type DifficultyTest struct { ParentTimestamp *big.Int `json:"parentTimestamp"` ParentDifficulty *big.Int `json:"parentDifficulty"` UncleHash common.Hash `json:"parentUncles"` CurrentTimestamp *big.Int `json:"currentTimestamp"` CurrentBlockNumber uint64 `json:"currentBlockNumber"` CurrentDifficulty *big.Int `json:"currentDifficulty"` }
func (DifficultyTest) MarshalJSON ¶
func (d DifficultyTest) MarshalJSON() ([]byte, error)
func (*DifficultyTest) Run ¶
func (test *DifficultyTest) Run(config *params.ChainConfig) error
func (*DifficultyTest) UnmarshalJSON ¶
func (d *DifficultyTest) UnmarshalJSON(input []byte) error
type StateSubtest ¶
type StateTest ¶
type StateTest struct {
// contains filtered or unexported fields
}
func (*StateTest) Subtests ¶
func (t *StateTest) Subtests() []StateSubtest
func (*StateTest) UnmarshalJSON ¶
type TransactionTest ¶
type TransactionTest struct {
// contains filtered or unexported fields
}
func (*TransactionTest) Run ¶
func (tt *TransactionTest) Run(config *params.ChainConfig) error
type UnsupportedForkError ¶
type UnsupportedForkError struct {
Name string
}
func (UnsupportedForkError) Error ¶
func (e UnsupportedForkError) Error() string
Click to show internal directories.
Click to hide internal directories.