voting

package
v0.0.0-...-8aa4d74 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basis

type Basis struct {
	Round     uint64 `json:"round"`      // round sequence number
	Height    uint64 `json:"height"`     // last block height
	BlockHash string `json:"block-hash"` // hash of last block
	TotalTxs  uint64 `json:"total-txs"`
	TotalOps  uint64 `json:"total-ops"`
}

func (Basis) Index

func (r Basis) Index() string

type Hole

type Hole string
const (
	NOTYET Hole = "NOT-YET"
	YES    Hole = "YES"
	NO     Hole = "NO"
	EXP    Hole = "EXPIRED"
)

type ThresholdPolicy

type ThresholdPolicy interface {
	Threshold() int
	Validators() int
	// Set the number of validators required for consensus
	// The parameter must be a strictly positive integer
	SetValidators(int)
	Connected() int
	// Set the number of currently connected nodes
	// The parameter must be a strictly positive integer
	SetConnected(int)
}

Jump to

Keyboard shortcuts

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