-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
There was a problem hiding this 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(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You’re right, thanks
There was a problem hiding this 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.
apps/challenger/src/app.mjs
Outdated
@@ -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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right. Thanks
Changes required to make #823 work in deployment:
apps/challenger
to be consistent withapp/proposer
registerChallenger
fromapps/challenger/src/challenger.mjs
as its not needed anymorelog(environment)
from apps as it reveals private informationMULTISIG_APPROVERS
in config