Versions in this module Expand all Collapse all v1 v1.2.1 Oct 17, 2017 v1.2.0 Jul 27, 2017 v1.1.0 Mar 23, 2017 v1.0.3 Mar 3, 2017 v1.0.2 Dec 20, 2016 Changes in this version + var BlockSkipTests = []string + var EnableJit bool + var ForceJit bool + var StateSkipTests = []string + var TransSkipTests = []string + var VmSkipTests = []string + func BenchStateTest(ruleSet RuleSet, p string, conf bconf, b *testing.B) error + func BenchVmTest(p string, conf bconf, b *testing.B) error + func LoadBlockTests(file string) (map[string]*BlockTest, error) + func RunBlockTest(homesteadBlock, daoForkBlock, gasPriceFork *big.Int, file string, ...) error + func RunBlockTestWithReader(homesteadBlock, daoForkBlock, gasPriceFork *big.Int, r io.Reader, ...) error + func RunRLPTest(file string, skip []string) error + func RunRLPTestWithReader(r io.Reader, skip []string) error + func RunState(ruleSet RuleSet, statedb *state.StateDB, env, tx map[string]string) ([]byte, vm.Logs, *big.Int, error) + func RunStateTest(ruleSet RuleSet, p string, skipTests []string) error + func RunStateTestWithReader(ruleSet RuleSet, r io.Reader, skipTests []string) error + func RunTransactionTests(file string, skipTests []string) error + func RunTransactionTestsWithReader(r io.Reader, skipTests []string) error + func RunVm(state *state.StateDB, env, exec map[string]string) ([]byte, vm.Logs, *big.Int, error) + func RunVmTest(p string, skipTests []string) error + func RunVmTestWithReader(r io.Reader, skipTests []string) error + type Account struct + Balance string + Code string + Nonce string + Storage map[string]string + type BlockTest struct + Genesis *types.Block + Json *btJSON + func (t *BlockTest) InsertPreState(db ethdb.Database) (*state.StateDB, error) + func (t *BlockTest) TryBlocksInsert(blockchain *core.BlockChain) ([]btBlock, error) + func (t *BlockTest) ValidatePostState(statedb *state.StateDB) error + func (test *BlockTest) ValidateImportedHeaders(cm *core.BlockChain, validBlocks []btBlock) error + type Env struct + Gas *big.Int + func NewEnv(ruleSet RuleSet, state *state.StateDB) *Env + func NewEnvFromMap(ruleSet RuleSet, state *state.StateDB, envValues map[string]string, ...) *Env + func (self *Env) AddLog(log *vm.Log) + func (self *Env) BlockNumber() *big.Int + func (self *Env) Call(caller vm.ContractRef, addr common.Address, data []byte, ...) ([]byte, error) + func (self *Env) CallCode(caller vm.ContractRef, addr common.Address, data []byte, ...) ([]byte, error) + func (self *Env) CanTransfer(from common.Address, balance *big.Int) bool + func (self *Env) Coinbase() common.Address + func (self *Env) Create(caller vm.ContractRef, data []byte, gas, price, value *big.Int) ([]byte, common.Address, error) + func (self *Env) Db() vm.Database + func (self *Env) DelegateCall(caller vm.ContractRef, addr common.Address, data []byte, gas, price *big.Int) ([]byte, error) + func (self *Env) Depth() int + func (self *Env) Difficulty() *big.Int + func (self *Env) GasLimit() *big.Int + func (self *Env) GetHash(n uint64) common.Hash + func (self *Env) Origin() common.Address + func (self *Env) ReadOnly() bool + func (self *Env) RevertToSnapshot(snapshot int) + func (self *Env) RuleSet() vm.RuleSet + func (self *Env) SetDepth(i int) + func (self *Env) SnapshotDatabase() int + func (self *Env) Time() *big.Int + func (self *Env) Transfer(from, to vm.Account, amount *big.Int) + func (self *Env) Vm() vm.Vm + func (self *Env) VmType() vm.Type + type Log struct + AddressF string + BloomF string + DataF string + TopicsF []string + func (self Log) Address() []byte + func (self Log) Data() []byte + func (self Log) RlpData() interface{} + func (self Log) Topics() [][]byte + type Message struct + func NewMessage(from common.Address, to *common.Address, data []byte, ...) Message + func (self Message) CheckNonce() bool + func (self Message) Data() []byte + func (self Message) From() (common.Address, error) + func (self Message) FromFrontier() (common.Address, error) + func (self Message) Gas() *big.Int + func (self Message) GasPrice() *big.Int + func (self Message) Hash() []byte + func (self Message) Nonce() uint64 + func (self Message) To() *common.Address + func (self Message) Value() *big.Int + type RLPTest struct + In interface{} + Out string + func (t *RLPTest) Run() error + type RuleSet struct + DAOForkBlock *big.Int + DAOForkSupport bool + HomesteadBlock *big.Int + HomesteadGasRepriceBlock *big.Int + func (r RuleSet) GasTable(num *big.Int) params.GasTable + func (r RuleSet) IsHomestead(n *big.Int) bool + type TransactionTest struct + Blocknumber string + Rlp string + Sender string + Transaction TtTransaction + type TtTransaction struct + Data string + GasLimit string + GasPrice string + Nonce string + R string + S string + To string + V string + Value string + type VmEnv struct + CurrentCoinbase string + CurrentDifficulty string + CurrentGasLimit string + CurrentNumber string + CurrentTimestamp interface{} + PreviousHash string + type VmTest struct + Callcreates interface{} + Env VmEnv + Exec map[string]string + Gas string + Logs []Log + Out string + Post map[string]Account + PostStateRoot string + Pre map[string]Account + Transaction map[string]string Incompatible versions in this module v2.1.0+incompatible Aug 23, 2018 v2.0.2+incompatible Mar 1, 2018 v2.0.1+incompatible Feb 21, 2018 v2.0.1-pre+incompatible Feb 8, 2018 v2.0.0+incompatible Nov 16, 2017