Documentation ¶
Index ¶
- func NewEthConfig(ctx *cli.Context, stack *node.Node) *eth.Config
- func NewNodeConfig(ctx *cli.Context) *node.Config
- func ReportDeliverTx(tx *ethTypes.Transaction)
- 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) ChainConfig() *params.ChainConfig
- func (b *Backend) Commit() (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) GetTransactionByHash(hash common.Hash) *ethTypes.Transaction
- func (b *Backend) IsEtxExist(hash common.Hash) bool
- func (b *Backend) Protocols() []p2p.Protocol
- func (b *Backend) ResetWork() error
- func (b *Backend) Start(svr *p2p.Server) error
- func (b *Backend) Stop() error
- func (b *Backend) UpdateHeader(tmHeader *abciTypes.Header)
- type NetRPCService
- type Node
- type NullBlockProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEthConfig ¶
NewEthConfig for the ethereum services #unstable
func NewNodeConfig ¶
NewNodeConfig for p2p and network layer #unstable
func ReportDeliverTx ¶
func ReportDeliverTx(tx *ethTypes.Transaction)
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend handles the chain database and VM #stable - 0.4.0
func NewBackend ¶
func NewBackend(ctx *node.ServiceContext, config *eth.Config, client rpcClient.HTTPClient) (*Backend, error)
NewBackend creates a new Backend #stable - 0.4.0
func (*Backend) APIs ¶
APIs returns the collection of RPC services the ethereum package offers. #stable - 0.4.0
func (*Backend) AccumulateRewards ¶
AccumulateRewards accumulates the rewards based on the given strategy #unstable
func (*Backend) BroadcastTx ¶
func (b *Backend) BroadcastTx(tx *ethTypes.Transaction) error
BroadcastTx broadcasts a transaction to tendermint core #unstable
func (*Backend) ChainConfig ¶
func (b *Backend) ChainConfig() *params.ChainConfig
func (*Backend) DeliverTx ¶
func (b *Backend) DeliverTx(tx *ethTypes.Transaction) error
DeliverTx appends a transaction to the current block #stable
func (*Backend) GetTransactionByHash ¶
func (b *Backend) GetTransactionByHash(hash common.Hash) *ethTypes.Transaction
func (*Backend) Protocols ¶
Protocols implements node.Service, returning all the currently configured network protocols to start. #stable
func (*Backend) Start ¶
Start implements node.Service, starting all internal goroutines needed by the Ethereum protocol implementation. #stable
func (*Backend) Stop ¶
Stop implements node.Service, terminating all internal goroutines used by the Ethereum protocol. #stable
func (*Backend) UpdateHeader ¶
UpdateHeaderWithTimeInfo uses the tendermint header to update the ethereum header #unstable
type NetRPCService ¶
type NetRPCService struct {
// contains filtered or unexported fields
}
NetRPCService mirrors the implementation of `internal/ethapi`
func NewNetRPCService ¶
func NewNetRPCService(networkVersion uint64) *NetRPCService
NewNetRPCService creates a new net API instance.
func (*NetRPCService) Listening ¶
func (n *NetRPCService) Listening() bool
Listening returns an indication if the node is listening for network connections.
func (*NetRPCService) PeerCount ¶
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 #unstable
func (NullBlockProcessor) ValidateBody ¶
func (NullBlockProcessor) ValidateBody(*ethTypes.Block) error
ValidateBody does not validate anything #unstable