Skip to content

Commit e6614a6

Browse files
authored
fix: call new hasEnoughGas method to fall back on cached value on communication failure (#672)
1 parent e87ad05 commit e6614a6

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22

33
chain:
4-
image: docker-regis.iex.ec/poco-chain:1.0.0-poco-v5.5.0-voucher-v1.0.0-nethermind
4+
image: docker-regis.iex.ec/poco-chain:1.2.2-poco-v6.2.0-contracts-nethermind
55
expose:
66
- "8545"
77

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# x-release-please-start-version
22
version=9.2.0
33
# x-release-please-end
4-
iexecCommonsPocoVersion=5.3.1
4+
iexecCommonsPocoVersion=5.4.0
55
iexecCommonVersion=9.2.0
66
iexecCommonsContainersVersion=2.0.0
77
iexecResultVersion=9.0.0

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,6 @@ Optional<ChainAccount> getChainAccount() {
242242
return getChainAccount(signerService.getAddress());
243243
}
244244

245-
public boolean hasEnoughGas() {
246-
return web3jService.hasEnoughGas(signerService.getAddress());
247-
}
248-
249245
public long getLatestBlockNumber() {
250246
return web3jService.getLatestBlockNumber();
251247
}

0 commit comments

Comments
 (0)