voter

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: 14 Imported by: 1

Documentation

Overview

Package voter defines all relevant functionality for a Notary actor within a sharded Ethereum blockchain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notary

type Notary struct {
	// contains filtered or unexported fields
}

Notary holds functionality required to run a collation voter in a sharded system. Must satisfy the Service interface defined in sharding/service.go.

func NewNotary

func NewNotary(config *params.Config, vrcClient *mainchain.VRCClient, p2p *p2p.Server, dbService *database.ShardDB) (*Notary, error)

NewNotary creates a new voter instance.

func (*Notary) Start

func (n *Notary) Start()

Start the main routine for a voter.

func (*Notary) Stop

func (n *Notary) Stop() error

Stop the main loop for notarizing collations.

Jump to

Keyboard shortcuts

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