election

package
v0.0.0-...-e7ebba5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 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()

Jump to

Keyboard shortcuts

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