election

package
v0.0.0-...-ff9c3df Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_ELECT = 0x01
	MSG_VOTE  = 0x02
)

Variables

This section is empty.

Functions

func AddrToInt

func AddrToInt(address common.Address) uint64

Types

type ElectParameters

type ElectParameters struct {
	Candidates []*geecCore.GeecMember
	BlkNum     uint64
	Version    uint64
}

type Server

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

func NewServer

func NewServer(ipstr string, portstr string, myAddr common.Address, state geecCore.State) *Server

func (*Server) Elect

func (s *Server) Elect(ep *ElectParameters, stop <-chan struct{}) int

func (*Server) HandleMessage

func (s *Server) HandleMessage()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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