Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfirmDepth = 12
Functions ¶
This section is empty.
Types ¶
type BlockChain ¶
type GasPriceOracle ¶
type ProtocolManager ¶
type SimpleChain ¶
type SimpleChain interface {
BlockChain() *core.BlockChain
ChainConfig() *params.ChainConfig
GasOracle() *gasprice.Oracle
ProtocolManager() ProtocolManager
AccountManager() *accounts.Manager
RegisterAPIs([]rpc.API)
GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, header *types.Header, vmCfg vm.Config) (*vm.EVM, func() error, error)
StateAndHeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*state.StateDB, *types.Header, error)
}
type SimpleProtocolChain ¶
type SimpleProtocolChain struct {
SimpleChain
}
func NewSimpleProtocolChain ¶
func NewSimpleProtocolChain(sc SimpleChain) *SimpleProtocolChain
func (*SimpleProtocolChain) ChainID ¶
func (sc *SimpleProtocolChain) ChainID() *big.Int
func (*SimpleProtocolChain) GenesisHash ¶
func (sc *SimpleProtocolChain) GenesisHash() common.Hash
Click to show internal directories.
Click to hide internal directories.