Skip to content

Commit

Permalink
Allo up to 4 blockchain transactions at the same time (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbern0rd authored Jun 4, 2024
1 parent a8d6748 commit 9d217fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### New Features

- Replace `CredentialsService` with `SignerService`. (#143)
- Allow up to 4 blockchain transactions at the same time. (#144)

### Quality

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To run properly, the iExec Blockchain Adapter API requires:
| `IEXEC_BLOCKCHAIN_ADAPTER_API_HUB_ADDRESS` | Proxy contract address to interact with the iExec on-chain protocol. | Ethereum Address | `0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f` |
| `IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER` | Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float | `1.0` |
| `IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_CAP` | In Wei, will be used for transactions if `networkGasPrice * gasPriceMultiplier > gasPriceCap`. | Positive integer | `22000000000` |
| `IEXEC_BLOCKCHAIN_ADAPTER_API_MAX_ALLOWED_TX_PER_BLOCK` | Max number of transactions per block, it can either be `1` or `2`. | Positive integer | `1` |
| `IEXEC_BLOCKCHAIN_ADAPTER_API_MAX_ALLOWED_TX_PER_BLOCK` | Max number of transactions per block, between `1` and `4`. | Positive integer | `1` |
| `IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PATH` | Path to the wallet of the server. | String | `src/main/resources/wallet.json` |
| `IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PASSWORD` | Password to unlock the wallet of the server. | String | `whatever` |

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/iexec/blockchain/tool/ChainConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class ChainConfig {
long gasPriceCap;

@Positive
@Max(value = 2)
@Max(value = 4)
int maxAllowedTxPerBlock;

@PostConstruct
Expand Down

0 comments on commit 9d217fb

Please sign in to comment.