Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Change AT discard RPC tests to be more reliable by checking discard using proposals #1411

Merged
merged 5 commits into from
May 10, 2019

Conversation

jframe
Copy link
Contributor

@jframe jframe commented May 8, 2019

PR description

Change AT discard RPC tests to be more reliable by checking discard using proposals RPC

Fixed Issue(s)

@jframe jframe marked this pull request as ready for review May 9, 2019 05:59
@jframe jframe requested review from rain-on, CjHare and pinges May 9, 2019 05:59

validator1.execute(cliqueTransactions.createAddProposal(validator2));
validator1.execute(cliqueTransactions.createRemoveProposal(validator3));
validator1.verify(
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this a race condition? ...as you can't be entire sure of the ordering of the proposals (assuming verify checks ordering)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It actually builds a map of address, boolean so the order doesn't matter.

validator2.execute(ibftTransactions.createAddProposal(validator3));
validator1.execute(ibftTransactions.createAddProposal(validator2));
validator1.execute(ibftTransactions.createRemoveProposal(validator3));
validator1.verify(
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto; race condition around request ordering?

@jframe jframe merged commit 553ff84 into PegaSysEng:master May 10, 2019
@jframe jframe deleted the discard_at_use_proposals branch May 10, 2019 04:22
notlesh pushed a commit to notlesh/pantheon that referenced this pull request May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants