Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Forks map[string]*params.ChainConfig
Forks table defines supported forks and their chain config.
Functions ¶
func AvailableForks ¶ added in v0.5.0
func AvailableForks() []string
AvailableForks returns the set of defined fork names
func FromHex ¶ added in v0.5.0
FromHex returns the bytes represented by the hexadecimal string s. s may be prefixed with "0x". This is copy-pasted from bytes.go, which does not return the error
func GetRepoRootPath ¶ added in v0.15.3
Types ¶
type RLPTest ¶ added in v0.5.0
type RLPTest struct {
// If the value of In is "INVALID" or "VALID", the test
// checks whether Out can be decoded into a value of
// type interface{}.
//
// For other JSON values, In is treated as a driver for
// calls to rlp.Stream. The test also verifies that encoding
// In produces the bytes in Out.
In interface{}
// Out is a hex-encoded RLP value.
Out string
}
RLPTest is the JSON structure of a single RLP test.
type StateTestState ¶ added in v0.13.8
type StateTestState struct {
StateDB *state.StateDB
TrieDB *triedb.Database
Snapshots *snapshot.Tree
TempDir string
}
StateTestState groups all the state database objects together for use in tests.
func MakePreState ¶ added in v0.5.0
func MakePreState(db ethdb.Database, accounts types.GenesisAlloc, snapshotter bool, scheme string) StateTestState
MakePreState creates a state containing the given allocation.
func (*StateTestState) Close ¶ added in v0.13.8
func (st *StateTestState) Close()
Close should be called when the state is no longer needed, ie. after running the test.
type UnsupportedForkError ¶ added in v0.5.0
type UnsupportedForkError struct {
Name string
}
UnsupportedForkError is returned when a test requests a fork that isn't implemented.
func (UnsupportedForkError) Error ¶ added in v0.5.0
func (e UnsupportedForkError) Error() string
Directories
¶
| Path | Synopsis |
|---|---|
|
aggregator
Package aggregator is a generated GoMock package.
|
Package aggregator is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.