Skip to content

Commit f388b61

Browse files
author
Ugo Plouviez
committed
Fix bug
1 parent da76142 commit f388b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void contribute(ContributionAuthorization contribAuth) {
249249
@Async
250250
public void reveal(String chainTaskId, long consensusBlock) {
251251
log.info("Trying to reveal [chainTaskId:{}]", chainTaskId);
252-
if (web3jService.isBlockAvailable(consensusBlock)) {
252+
if (!web3jService.isBlockAvailable(consensusBlock)) {
253253
log.warn("Sync issues before canReveal (latestBlock before consensusBlock) [chainTaskId:{}, latestBlock:{}, " +
254254
"consensusBlock:{}]", chainTaskId, web3jService.getLatestBlockNumber(), consensusBlock);
255255
return;

0 commit comments

Comments
 (0)