Documentation
¶
Index ¶
- Constants
- func Booth(pollAndPeer interface{}, ownBlockAndNodeID interface{})
- func Prepare(using vote.Ballots, forPeriodID uint64, withOwn *vote.Vote) (*vote.Results, error)
- func Process(election e6n.Election, forNodeID string) (elected *block.Block, isDifferent bool, vm station.VotingMachine, err error)
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 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.
Click to show internal directories.
Click to hide internal directories.