Skip to content

Commit 113cb1e

Browse files
author
Jérémy James Toussaint
committed
Is consensus reached will be made by core
1 parent 3331520 commit 113cb1e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/com/iexec/worker/executor/TaskExecutorService.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,6 @@ public void contribute(ContributionAuthorization contribAuth) {
206206
enclaveSignature = contributionService.getEnclaveSignature(contribAuth, deterministHash, oEnclaveSignature.get());
207207
}
208208

209-
/* TODO: add coreLatestBlock in contribAuth
210-
long coreLatestBlock = contribAuth.getCoreLastBlock();
211-
if (web3jService.isBlockAvailable(coreLatestBlock)) {
212-
log.warn("Sync issues before canContribute (workerLatestBlock before coreLatestBlock) [chainTaskId:{}, workerLatestBlock:{}, " +
213-
"coreLatestBlock:{}]", chainTaskId, web3jService.getLatestBlockNumber(), coreLatestBlock);
214-
return;
215-
}
216-
*/
217-
218209
Optional<ReplicateStatus> canContributeStatus = contributionService.getCanContributeStatus(chainTaskId);
219210
if (!canContributeStatus.isPresent()) {
220211
log.error("canContributeStatus should not be empty (getChainTask issue) [chainTaskId:{}]", chainTaskId);

0 commit comments

Comments
 (0)