Skip to content

Commit

Permalink
fix: disputed request should not return but continue
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed May 14, 2020
1 parent c512227 commit 7c02bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BLOCK_TIME_SECONDS=4
# emitted by the factory. We can fetch logs more quickly by
# sweeping the blockchain from the deployment block of the factory contract.
# This field is optional, if not set, 0 will be used.
FACTORY_BLOCK_NUM=16384123
FACTORY_BLOCK_NUM=18495615

# This is the account that will call execute unchallenged requests
# and withdraw rewards for the users.
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const deploymentBlock = Number(process.env.FACTORY_BLOCK_NUM) || 0
console.info(` Checking ${pendingRequestCount} of ${pendingRequests.length}`)
const { values: { _itemID, _requestIndex }} = pendingRequest
const { submissionTime, disputed } = await tcr.getRequestInfo(_itemID, _requestIndex)
if (disputed) return // There is an ongoing dispute. No-op.
if (disputed) continue // There is an ongoing dispute. No-op.

if (bigNumberify(timestamp).sub(submissionTime).gt(challengePeriodDuration)) {
// Challenge period passed with no challenges, execute it.
Expand Down

0 comments on commit 7c02bcb

Please sign in to comment.