Documentation ¶
Index ¶
- type Backend
- func (b *Backend) APIs() []rpc.API
- func (b *Backend) Config() *eth.Config
- func (b *Backend) Ethereum() *eth.Ethereum
- func (b *Backend) GetLocalClient() *rpcClient.Local
- func (b *Backend) ManagedState() *state.ManagedState
- func (b *Backend) PeerCount() int
- func (b *Backend) Protocols() []p2p.Protocol
- func (b *Backend) ResetState() (*state.ManagedState, error)
- func (b *Backend) Start(srvr *p2p.Server) error
- func (b *Backend) Stop() error
- type FreeGasAPI
- type NullBlockProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { EthState *ethereum.EthereumWorkState // contains filtered or unexported fields }
Backend handles the chain database and VM
func NewBackend ¶
NewBackend creates a new Backend
func (*Backend) GetLocalClient ¶
func (*Backend) ManagedState ¶
func (b *Backend) ManagedState() *state.ManagedState
func (*Backend) Protocols ¶
Protocols implements node.Service, returning all the currently configured network protocols to start.
func (*Backend) ResetState ¶
func (b *Backend) ResetState() (*state.ManagedState, error)
type FreeGasAPI ¶
type FreeGasAPI struct {
// contains filtered or unexported fields
}
func NewFreeGasAPI ¶
func NewFreeGasAPI(b Backend) *FreeGasAPI
func (*FreeGasAPI) GetStatus ¶
func (s *FreeGasAPI) GetStatus() int
func (*FreeGasAPI) GetSurplus ¶
func (*FreeGasAPI) SetStatus ¶
func (s *FreeGasAPI) SetStatus(stat int)
type NullBlockProcessor ¶
type NullBlockProcessor struct{}
NullBlockProcessor does not validate anything
func (NullBlockProcessor) ValidateBody ¶
func (NullBlockProcessor) ValidateBody(*ethTypes.Block) error
ValidateBody does not validate anything
Click to show internal directories.
Click to hide internal directories.