File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/main/java/com/iexec/core/chain Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2222import org .springframework .beans .factory .annotation .Value ;
2323import org .springframework .stereotype .Component ;
2424
25+ import java .time .Duration ;
26+
2527@ Component
2628@ Getter
2729@ AllArgsConstructor
@@ -37,6 +39,9 @@ public class ChainConfig {
3739 @ Value ("#{blockchainAdapterService.publicChainConfig.iexecHubContractAddress}" )
3840 private String hubAddress ;
3941
42+ @ Value ("#{blockchainAdapterService.publicChainConfig.blockTime}" )
43+ private Duration blockTime ;
44+
4045 @ Value ("${chain.privateAddress}" )
4146 private String privateChainAddress ;
4247
Original file line number Diff line number Diff line change 1919import com .iexec .commons .poco .chain .Web3jAbstractService ;
2020import org .springframework .stereotype .Service ;
2121
22+ import java .time .Duration ;
23+
2224@ Service
2325public class Web3jService extends Web3jAbstractService {
2426
2527 public Web3jService (ChainConfig chainConfig ) {
2628 super (
2729 chainConfig .getChainId (),
2830 chainConfig .getPrivateChainAddress (),
31+ chainConfig .getBlockTime (),
2932 chainConfig .getGasPriceMultiplier (),
3033 chainConfig .getGasPriceCap (),
3134 chainConfig .isSidechain ()
You can’t perform that action at this time.
0 commit comments