Documentation
¶
Index ¶
- func MakeSystemNode(name, version string, ctx *cli.Context) *node.Node
- type Backend
- func (s *Backend) APIs() []rpc.API
- func (b *Backend) AccumulateRewards(strategy *emtTypes.Strategy)
- func (s *Backend) BroadcastTx(tx *ethTypes.Transaction) error
- func (b *Backend) Commit(receiver common.Address) (common.Hash, error)
- func (s *Backend) Config() *eth.Config
- func (b *Backend) DeliverTx(tx *ethTypes.Transaction) error
- func (s *Backend) Ethereum() *eth.Ethereum
- func (s *Backend) Protocols() []p2p.Protocol
- func (b *Backend) ResetWork(receiver common.Address) error
- func (s *Backend) Start(srvr *p2p.Server) error
- func (s *Backend) Stop() error
- func (b *Backend) UpdateHeaderWithTimeInfo(tmHeader *abciTypes.Header)
- type Client
- type NetRPCService
- type NullBlockProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend handles the chain database and VM
func NewBackend ¶
New creates a new Backend
func (*Backend) AccumulateRewards ¶
func (*Backend) BroadcastTx ¶
func (s *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 Client ¶
type Client interface {
// see tendermint/go-rpc/client/http_client.go:115 func (c *ClientURI) Call(...)
Call(method string, params map[string]interface{}, result interface{}) (interface{}, error)
}
used by Backend to call tendermint rpc endpoints TODO: replace with HttpClient https://github.com/tendermint/go-rpc/issues/8
type NetRPCService ¶
type NetRPCService struct {
// contains filtered or unexported fields
}
we must implement our own net service since we don't have access to `internal/ethapi`
func (*NetRPCService) Version ¶
func (n *NetRPCService) Version() string
type NullBlockProcessor ¶
type NullBlockProcessor struct{}
NullBlockProcessor does not validate anything
func (NullBlockProcessor) ValidateBlock ¶
func (NullBlockProcessor) ValidateBlock(*ethTypes.Block) error
ValidateBlock does not validate anything
func (NullBlockProcessor) ValidateHeader ¶
ValidateHeader does not validate anything