voting

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const EXTRA_DELAY = 500 * time.Millisecond // TODO Pass as parameter or put in some Config?

Variables

This section is empty.

Functions

func Booth

func Booth(pollAndPeer interface{}, ownBlockAndNodeID interface{})

Booth allows the current user to vote

func Prepare

func Prepare(using vote.Ballots, forPeriodID uint64, withOwn *vote.Vote) (*vote.Results, error)

Prepare ...

func Process

func Process(election e6n.Election, forNodeID string) (elected *block.Block, isDifferent bool, vm station.VotingMachine, err error)

Process ... If it returns a block that is different from the passed node's own block, the block should be tested as valid and, if not, the node may use the rest of the election results returned. NB: It should use its own goroutine because it's a blocking process

Types

This section is empty.

Jump to

Keyboard shortcuts

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