node

package
v0.0.0-...-dde17ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2018 License: GPL-3.0 Imports: 23 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL