Documentation ¶
Index ¶
- func NewEthConfig(ctx *cli.Context, stack *node.Node) *eth.Config
- func NewNodeConfig(ctx *cli.Context) *node.Config
- type Backend
- func (b *Backend) APIs() []rpc.API
- func (b *Backend) AccumulateRewards(strategy *emtTypes.Strategy)
- func (b *Backend) BroadcastTx(tx *ethTypes.Transaction) error
- func (b *Backend) Commit(receiver common.Address) (common.Hash, error)
- func (b *Backend) Config() *eth.Config
- func (b *Backend) DeliverTx(tx *ethTypes.Transaction) error
- func (b *Backend) Ethereum() *eth.Ethereum
- func (b *Backend) GasLimit() big.Int
- func (b *Backend) Protocols() []p2p.Protocol
- func (b *Backend) ResetWork(receiver common.Address) error
- func (b *Backend) Start(srvr *p2p.Server) error
- func (b *Backend) Stop() error
- func (b *Backend) UpdateHeaderWithTimeInfo(tmHeader *abciTypes.Header)
- type NetRPCService
- type NullBlockProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEthConfig ¶ added in v0.2.0
NewEthConfig for the ethereum services
func NewNodeConfig ¶ added in v0.2.0
NewNodeConfig for p2p and network layer
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend handles the chain database and VM
func NewBackend ¶
func NewBackend(ctx *node.ServiceContext, config *eth.Config, client rpcClient.HTTPClient) (*Backend, error)
NewBackend creates a new Backend
func (*Backend) AccumulateRewards ¶
func (*Backend) BroadcastTx ¶
func (b *Backend) BroadcastTx(tx *ethTypes.Transaction) error
BroadcastTx broadcasts a transaction to tendermint core
func (*Backend) Protocols ¶
Protocols implements node.Service, returning all the currently configured network protocols to start.
func (*Backend) Start ¶
Start implements node.Service, starting all internal goroutines needed by the Ethereum protocol implementation.
func (*Backend) Stop ¶
Stop implements node.Service, terminating all internal goroutines used by the Ethereum protocol.
func (*Backend) UpdateHeaderWithTimeInfo ¶
type NetRPCService ¶
type NetRPCService struct {
// contains filtered or unexported fields
}
func NewNetRPCService ¶ added in v0.2.0
func NewNetRPCService(networkVersion uint64) *NetRPCService
NewNetRPCService creates a new net API instance.
func (*NetRPCService) Listening ¶ added in v0.2.0
func (n *NetRPCService) Listening() bool
Listening returns an indication if the node is listening for network connections.
func (*NetRPCService) PeerCount ¶ added in v0.2.0
func (n *NetRPCService) PeerCount() hexutil.Uint
PeerCount returns the number of connected peers
func (*NetRPCService) Version ¶
func (n *NetRPCService) Version() string
Version returns the current ethereum protocol version.
type NullBlockProcessor ¶
type NullBlockProcessor struct{}
NullBlockProcessor does not validate anything
func (NullBlockProcessor) ValidateBody ¶ added in v0.2.0
func (NullBlockProcessor) ValidateBody(*ethTypes.Block) error
ValidateBody does not validate anything