Skip to content

Conversation

leandernikolaus
Copy link
Contributor

Added check and createVote functions
which do not have side effects and should be easier to test.

added check and createVote functions
which do not have sideeffects and should be easier to test.
if qcBlock, ok := cs.blockChain.Get(block.QuorumCert().BlockHash()); ok {
cs.acceptor.Proposed(qcBlock.Command())
} else {
cs.logger.Info("OnPropose: Failed to fetch qcBlock")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this case can never happen since the existence of the qcBlock was already checked when verifying the QC.
Should we remove the whole if?

I keep getting weird behavior from git when switching between
branches, resulting in seeming conflicts when there is none.
This is a suggestion from ChatGPT, but I'm not convinced it will
help; let's see.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants