Documentation
¶
Index ¶
Constants ¶
View Source
const ( // VoteSizeLimit is the maximum size of vote allowed VoteSizeLimit = 278 // CandidatesPrefix is the prefix of the key of candidateList CandidatesPrefix = "Candidates." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
Protocol defines the protocol of handling votes
func NewProtocol ¶
func NewProtocol(bc blockchain.Blockchain) *Protocol
NewProtocol instantiates the protocol of vote
Click to show internal directories.
Click to hide internal directories.