Documentation ¶
Index ¶
- Variables
- func ApplyTxn(block *Block, chain IBlockChain, statedb *gstate.StateDB, to common.Address, ...) error
- func CanTransfer(db vm.StateDB, addr gcommon.Address, amount *big.Int) bool
- func GetHashFn(ref *gtypes.Header, chain IBlockChain) func(n uint64) gcommon.Hash
- func HeaderToGeth(header *types.Header) *gtypes.Header
- func NewDefaultEVM(header *Header, chain IBlockChain, statedb vm.StateDB) *vm.EVM
- func NewEVM(header *Header, chain IBlockChain, statedb vm.StateDB, ...) *vm.EVM
- func NewEVMBlockContext(yheader *Header, chain IBlockChain, author *gcommon.Address) vm.BlockContext
- func Transfer(db vm.StateDB, sender, recipient gcommon.Address, amount *big.Int)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEthChainCfg = ¶ms.ChainConfig{ ChainID: big.NewInt(1), HomesteadBlock: onFork, DAOForkBlock: onFork, DAOForkSupport: true, EIP150Block: onFork, EIP150Hash: gcommon.Hash{}, EIP155Block: onFork, EIP158Block: onFork, ByzantiumBlock: onFork, ConstantinopleBlock: onFork, PetersburgBlock: onFork, IstanbulBlock: onFork, MuirGlacierBlock: onFork, BerlinBlock: onFork, LondonBlock: onFork, CatalystBlock: onFork, Ethash: nil, Clique: nil, }
Functions ¶
func CanTransfer ¶
CanTransfer checks whether there are enough funds in the address' account to make a transfer. This does not take the necessary gas in to account to make the transfer valid.
func NewDefaultEVM ¶
func NewEVMBlockContext ¶
func NewEVMBlockContext(yheader *Header, chain IBlockChain, author *gcommon.Address) vm.BlockContext
NewEVMBlockContext creates a new context for use in the EVM.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.