Skip to content

Commit 4e5fb03

Browse files
Merge pull request #172 from iExecBlockchainComputing/check-status-after-tx
Check status after tx
2 parents c3d8358 + 5437a57 commit 4e5fb03

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/main/java/com/iexec/worker/chain/IexecHubService.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ private IexecHubABILegacy.TaskContributeEventResponse sendContributeTransaction(
9898
}
9999

100100
if (contributeEvent != null && contributeEvent.log != null &&
101-
(!contributeEvent.log.getType().equals(PENDING_RECEIPT_STATUS)
102-
|| isStatusValidOnChainAfterPendingReceipt(chainTaskId, CONTRIBUTED, this::isContributionStatusValidOnChain))) {
103-
log.info("Contributed [chainTaskId:{}, resultHash:{}, gasUsed:{}]",
104-
chainTaskId, resultHash, contributeReceipt.getGasUsed());
101+
isStatusValidOnChainAfterPendingReceipt(chainTaskId, CONTRIBUTED, this::isContributionStatusValidOnChain)) {
102+
log.info("Contributed [chainTaskId:{}, resultHash:{}, gasUsed:{}, log:{}]",
103+
chainTaskId, resultHash, contributeReceipt.getGasUsed(), contributeEvent.log);
105104
return contributeEvent;
106105
}
107106

@@ -144,10 +143,9 @@ private IexecHubABILegacy.TaskRevealEventResponse sendRevealTransaction(String c
144143
}
145144

146145
if (revealEvent != null && revealEvent.log != null &&
147-
(!revealEvent.log.getType().equals(PENDING_RECEIPT_STATUS)
148-
|| isStatusValidOnChainAfterPendingReceipt(chainTaskId, REVEALED, this::isContributionStatusValidOnChain))) {
149-
log.info("Revealed [chainTaskId:{}, resultDigest:{}, gasUsed:{}]",
150-
chainTaskId, resultDigest, revealReceipt.getGasUsed());
146+
isStatusValidOnChainAfterPendingReceipt(chainTaskId, REVEALED, this::isContributionStatusValidOnChain)) {
147+
log.info("Revealed [chainTaskId:{}, resultDigest:{}, gasUsed:{}, log:{}]",
148+
chainTaskId, resultDigest, revealReceipt.getGasUsed(), revealEvent.log);
151149
return revealEvent;
152150
}
153151

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ core:
88
worker:
99
name: ${IEXEC_WORKER_NAME:customWorker}
1010
workerBaseDir: ${IEXEC_WORKER_BASE_DIR:/tmp/iexec-worker}
11-
gasPriceMultiplier: ${IEXEC_GAS_PRICE_MULTIPLIER:1.0} # txs will be send with networkGasPrice*gasPriceMultiplier, 4.0 means super fast
11+
gasPriceMultiplier: ${IEXEC_GAS_PRICE_MULTIPLIER:1.3} # txs will be send with networkGasPrice*gasPriceMultiplier, 4.0 means super fast
1212
gasPriceCap: ${IEXEC_GAS_PRICE_CAP:22000000000} #in Wei, will be used for txs if networkGasPrice*gasPriceMultiplier > gasPriceCap
1313
teeEnabled: ${IEXEC_TEE_ENABLED:false}
1414
overrideBlockchainNodeAddress: ${IEXEC_WORKER_OVERRIDE_BLOCKCHAIN_NODE_ADDRESS:} #will use it if set, else will use the one given by the core

0 commit comments

Comments
 (0)