Documentation ¶
Overview ¶
Package node defines a backend for a sharding-enabled, Ethereum blockchain. It defines a struct which handles the lifecycle of services in the sharding system, providing a bridge to the main Ethereum blockchain, as well as instantiating peer-to-peer networking for shards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardEthereum ¶
type ShardEthereum struct {
// contains filtered or unexported fields
}
ShardEthereum is a service that is registered and started when geth is launched. it contains APIs and fields that handle the different components of the sharded Ethereum network.
func New ¶
func New(ctx *cli.Context) (*ShardEthereum, error)
New creates a new sharding-enabled Ethereum instance. This is called in the main geth sharding entrypoint.
func (*ShardEthereum) Close ¶
func (s *ShardEthereum) Close()
Close handles graceful shutdown of the system.
func (*ShardEthereum) Start ¶
func (s *ShardEthereum) Start()
Start the ShardEthereum service and kicks off the p2p and actor's main loop.