# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsVoteTypeValid return typeB is vote.
MakeBlockFromPartSet partSet to block.
MakePartSet block to partset.
NewBlockStore warning all function not thread_safe.
NewEventBus returns a new event bus.
NewEventSwitch new.
NewHealth new.
NewHealthMgr func.
NewHeightVoteSet get new HeightVoteSet.
NewPartSetFromData Returns an immutable, full PartSet from the data bytes.
NewPartSetFromHeader Returns an empty PartSet ready to be populated.
NewPartSetReader return new reader.
NewPrivValidator return new private Validator.
NewProposal returns a new Proposal.
NewStateAgent return new agent state.
NewValidator is return a new Validator.
NewValidatorSet is make a Validator to ValidatorSet.
NewVoteSet Constructs a new VoteSet struct used to accumulate votes for given height/round.
RegisterBlockAmino is register for block amino.
# Constants
No description provided by the author
64kB,.
Reserved event types.
Reserved event types.
Reserved event types.
EventNewBlock = "NewBlock"EventNewBlockHeader = "NewBlockHeader".
Reserved event types.
Reserved event types.
Reserved event types.
Reserved event types.
Reserved event types.
EventTx = "Tx".
Reserved event types.
HealthOut peer time out.
lMB.
-------------------------------------------------------.
Entered commit state machine.
Entered commit state machine.
Wait til CommitTime + timeoutCommit.
Setup new round and go to RoundStepPropose.
Did precommit, gossip precommits.
Did receive any +2/3 precommits, start timeout.
Did prevote, gossip prevotes.
Did receive any +2/3 prevotes, start timeout.
Did propose, gossip proposal.
No description provided by the author
No description provided by the author
No description provided by the author
TimeFormat is used for generating the sigs.
Types of votes TODO Make a new type "VoteType".
Types of votes TODO Make a new type "VoteType".
# Variables
No description provided by the author
ErrorGotVoteFromUnwantedRound is Peer has sent a vote that does not match our round for more than one round.
ErrPartSetInvalidProof is Error part set invalid proof.
ErrPartSetUnexpectedIndex is Error part set unexpected index.
ErrVoteConflictingVotes is Error Conflicting votes from validator.
ErrVoteInvalidSignature is Error Invalid signature.
ErrVoteInvalidValidatorAddress is Error Invalid validator address.
ErrVoteInvalidValidatorIndex is Error Invalid validator index.
ErrVoteNil is Error Nil vote.
ErrVoteInvalidBlockHash is Error Invalid block hashErrVoteInvalidBlockHash = errors.New("invalid block hash")ErrVoteNonDeterministicSignature is Error Non-deterministic signature.
ErrVoteUnexpectedStep is Error Unexpected step.
PeerStateKey is reactor key.
# Structs
BlockID defines the unique ID of a block as its Hash and its PartSetHeader.
BlockMeta struct.
BlockStore struct.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Commit contains the evidence that a block was committed by a set of validators.
EventBus is a common bus for all events going through the system.
EventDataCommon struct.
EventDataRoundState NOTE: This goes into the replay WAL.
EventDataVote event vote.
Health struct.
HealthMgr struct.
HeightVoteSet comment
Keeps track of all VoteSets from round 0 to round 'round'.
KeepBlockSign is block's sign.
Part struct.
PartSet struct.
PartSetHeader struct.
PartSetReader struct.
PeerRoundState contains the known state of a peer.
Proposal defines a block proposal for the consensus.
RoundState defines the internal consensus state.
RoundStateSimple Compressed version of the RoundState for use in RPC.
RoundVoteSet struct.
StateAgentImpl agent state struct.
SwitchValidator struct.
Validator state for each Validator NOTE: The Accum is not included in Validator.Hash(); make sure to update that method if changes are made here.
ValidatorSet represent a set of *Validator at a given height.
Vote Represents a prevote, precommit, or commit vote from validators for consensus.
VoteSet comment
VoteSet helps collect signatures from validators at each height+round for a
predefined vote type.
VoteSetJSON More human readable JSON of the vote set NOTE: insufficient for unmarshalling from (compressed votes) TODO: make the peerMaj23s nicer to read (eg just the block hash).
# Interfaces
Eventable reactors and other modules should export this interface to become eventable.
EventData Generic event data can be typed and registered with go-amino via concrete implementation of this interface.
EventSwitch interface.
Fireable an event switch or cache implements fireable.
PrivValidator defines the functionality of a local TrueChain validator that signs votes, proposals, and heartbeats, and never double signs.
StateAgent implements PrivValidator.
VoteSetReader Common interface between *consensus.VoteSet and types.Commit.
# Type aliases
EventCallback call back event.
HealthsByAddress Sort Healths by address.
P2PID UNSTABLE XXX: duplicate of p2p.ID to avoid dependence between packages.
PrivValidatorsByAddress is private validators for address.
RoundStepType enumerates the state of the consensus state machine.
ValidatorsByAddress is Sort validators by address.