# Functions
No description provided by the author
Compact trims the given qbft.State down to the minimum required for consensus to proceed.
CompactCopy returns a compacted copy of the given qbft.State.
CreateCommit*
Commit(
signCommit(
UnsignedCommit(
|current.blockchain|,
current.round,
signHash(hashBlockForCommitSeal(proposedBlock), current.id),
digest(proposedBlock)),
current.id
)
);
*/.
CreatePrepare*
Prepare(
signPrepare(
UnsignedPrepare(
|current.blockchain|,
newRound,
digest(m.proposedBlock)),
current.id
)
);
*/.
CreateProposal*
Proposal(
signProposal(
UnsignedProposal(
|current.blockchain|,
newRound,
digest(block)),
current.id),
block,
extractSignedRoundChanges(roundChanges),
extractSignedPrepares(prepares));
*/.
CreateRoundChange*
RoundChange(
signRoundChange(
UnsignedRoundChange(
|current.blockchain|,
newRound,
digestOptionalBlock(current.lastPreparedBlock),
current.lastPreparedRound),
current.id),
current.lastPreparedBlock,
getRoundChangeJustification(current)
)
*/.
No description provided by the author
No description provided by the author