Documentation ¶
Index ¶
- func CanTransfer(db vm.StateDB, addr common.Address, amount *big.Int) bool
- func NewHeader(cc ChainContext) *types.Header
- func NewStateDB(root common.Hash, dbPath string) (*state.StateDB, ethdb.Database)
- func NewVMContext(origin common.Address, coinbase common.Address, blockNum *big.Int, ...) vm.Context
- func Transfer(db vm.StateDB, sender, recipient common.Address, amount *big.Int)
- type ChainContext
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 NewHeader ¶
func NewHeader(cc ChainContext) *types.Header
NewHeader calls GetHeader() on the passed chain context with arbitrary arguments
func NewStateDB ¶
NewStateDB - Create a new StateDB using levelDB instead of RAM
Types ¶
type ChainContext ¶
type ChainContext struct {
// contains filtered or unexported fields
}
ChainContext needed by the evm
func NewChainContext ¶
func NewChainContext(coinbase common.Address) ChainContext
NewChainContext constructs a new context needed by EVMContext
func (ChainContext) Engine ¶
func (cc ChainContext) Engine() consensus.Engine
Engine is only here to satisfy the chaincontext interface
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func (Message) CheckNonce ¶
Click to show internal directories.
Click to hide internal directories.