Skip to content

Commit

Permalink
improve: nit fixes (#63)
Browse files Browse the repository at this point in the history
* Update index.ts

* Update index.ts
  • Loading branch information
nicholaspai authored May 23, 2022
1 parent 6773f58 commit 3b9d1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dataworker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function runDataworker(_logger: winston.Logger): Promise<void> {

// Validate and dispute pending proposal before proposing a new one
if (config.disputerEnabled) await dataworker.validatePendingRootBundle();
else logger[startupLogLevel(config)]({ at: "Dataworker#index", message: "Disputed disabled" });
else logger[startupLogLevel(config)]({ at: "Dataworker#index", message: "Disputer disabled" });

if (config.proposerEnabled) await dataworker.proposeRootBundle(config.rootBundleExecutionThreshold);
else logger[startupLogLevel(config)]({ at: "Dataworker#index", message: "Proposer disabled" });
Expand All @@ -49,7 +49,7 @@ export async function runDataworker(_logger: winston.Logger): Promise<void> {
await dataworker.executeSlowRelayLeaves();

await dataworker.executeRelayerRefundLeaves();
}
} else logger[startupLogLevel(config)]({ at: "Dataworker#index", message: "Executor disabled" });

await clients.multiCallerClient.executeTransactionQueue(!config.sendingTransactionsEnabled);

Expand Down

0 comments on commit 3b9d1e2

Please sign in to comment.