Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

David/ping pong update #923

Merged
merged 9 commits into from
Sep 15, 2022
Merged

David/ping pong update #923

merged 9 commits into from
Sep 15, 2022

Conversation

druiz0992
Copy link
Contributor

@druiz0992 druiz0992 commented Sep 13, 2022

Changes required to make #823 work in deployment:

  • Applied missing changes to apps/challenger to be consistent with app/proposer
  • Remove registerChallenger from apps/challenger/src/challenger.mjs as its not needed anymore
  • Remove log(environment) from apps as it reveals private information
  • Remove unnecessary nf3 log
  • Fix typo MULTISIG_APPROVERS in config
  • Add correct initial values to AWS deployment in config
  • Fix logs in ping-pong test
  • Raise error during proof generation if witness is not found

Copy link
Contributor

@signorecello signorecello left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for all the help man :)

const stateContractInstance = await waitForContract(STATE_CONTRACT_NAME);
const currentProposer = await stateContractInstance.methods.getCurrentProposer().call();
stateContractInstance = await waitForContract(STATE_CONTRACT_NAME);
currentProposer = await stateContractInstance.methods.getCurrentProposer().call();
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @druiz0992, why do not reuse the same instances from the lines 60-61?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You’re right, thanks

Copy link
Contributor

@israelboudoux israelboudoux left a comment

Choose a reason for hiding this comment

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

LGTM, just a minor thing to see.

@@ -53,6 +33,8 @@ app.use(
);

app.get('/healthcheck', (req, res) => res.sendStatus(200));
if (!CHALLENGER_PORT) throw new Error('Please specify a challenger port');
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this exception ever happen? On line 12 we specify a fallback value of 8192 in case the port is not defined. Either we should get rid of the default value from line 12, or remove this condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right. Thanks

@israelboudoux israelboudoux merged commit 72410d4 into master Sep 15, 2022
@druiz0992 druiz0992 deleted the david/ping-pong-update branch February 22, 2023 22:19
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.

4 participants