Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

Unit add to Variable Update run-batch-submitter.ts#50

Open
walkingbackward wants to merge 1 commit intoethereum-optimism:masterfrom
walkingbackward:patch-1
Open

Unit add to Variable Update run-batch-submitter.ts#50
walkingbackward wants to merge 1 commit intoethereum-optimism:masterfrom
walkingbackward:patch-1

Conversation

@walkingbackward
Copy link
Copy Markdown

Added: MS after POLL_INTERVAL
Added: S after MAX_SUBMISSION_TIME

Added: MS after POLL_INTERVAL
Added: S after MAX_SUBMISSION_TIME
parseInt(requiredEnvVars.MAX_BATCH_SUBMISSION_TIME, 10) * 1_000,
parseInt(requiredEnvVars.MAX_BATCH_SUBMISSION_TIME_S, 10) * 1_000,
parseInt(requiredEnvVars.NUM_CONFIRMATIONS, 10),
parseInt(requiredEnvVars.RESUBMISSION_TIMEOUT, 10) * 1_000,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This could also be changed to RESUBMISSION_TIMEOUT_S

@smartcontracts
Copy link
Copy Markdown

I think we need to change our types somewhere.

MAX_BATCH_SIZE: 'MAX_BATCH_SIZE'
// The maximum amount of time (seconds) that we will wait before submitting an under-sized batch.
MAX_BATCH_SUBMISSION_TIME: 'MAX_BATCH_SUBMISSION_TIME'
MAX_BATCH_SUBMISSION_TIME: 'MAX_BATCH_SUBMISSION_TIME_S'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
MAX_BATCH_SUBMISSION_TIME: 'MAX_BATCH_SUBMISSION_TIME_S'
MAX_BATCH_SUBMISSION_TIME_S: 'MAX_BATCH_SUBMISSION_TIME_S'

Ahhh ok I see the issue -- we have to change the keys here too.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same goes for all of the below

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I created a new pull request with new changes. Tried to edit this existing pull request, but could not figure it out.

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