-
Notifications
You must be signed in to change notification settings - Fork 17
Unit add to Variable Update run-batch-submitter.ts #50
base: master
Are you sure you want to change the base?
Conversation
Added: MS after POLL_INTERVAL Added: S after MAX_SUBMISSION_TIME
@@ -167,7 +167,7 @@ export const run = async () => { | |||
parseInt(requiredEnvVars.MIN_TX_SIZE, 10), | |||
parseInt(requiredEnvVars.MAX_TX_SIZE, 10), | |||
parseInt(requiredEnvVars.MAX_BATCH_SIZE, 10), | |||
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, |
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.
This could also be changed to RESUBMISSION_TIMEOUT_S
I think we need to change our types somewhere. |
@@ -38,9 +38,9 @@ interface RequiredEnvVars { | |||
// The maximum number of L2 transactions that can ever be in a batch. | |||
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' |
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.
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.
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.
Same goes for all of the below
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.
I created a new pull request with new changes. Tried to edit this existing pull request, but could not figure it out.
Added: MS after POLL_INTERVAL
Added: S after MAX_SUBMISSION_TIME