DynamicEIP1559GasProvider: max priority fee per gas higher than max fee per gas
Bug_title
DynamicEIP1559GasProvider produced JsonRpcError: max priority fee per gas higher than max fee per gas
Steps To Reproduce
it only happened once, depends on the network
Expected behavior
gas fee calculation like it does all the time. The dynamic gas provider is pretty good, it only happened like twice
Actual behavior
Exception in thread "main" org.web3j.protocol.exceptions.TransactionException: JsonRpcError thrown with code -32000. Message: max priority fee per gas higher than max fee per gas
Environment
- Web3j version, core 4.13.0
- Java 17
- Operating System: Windows 11
additional info, used gas provider constructor:
public DynamicEIP1559GasProvider(Web3j web3j, long chainId) {
this(web3j, chainId, Priority.NORMAL);
}
so no priority or customMultiplier explicitly specified
Hi @Julius278 , I tried to reproduce this issue last week but I didn't success. I tried to use the gas provider as you mentioned
DynamicEIP1559GasProvider gasProvider =
new DynamicEIP1559GasProvider(web3j, chainId, DynamicEIP1559GasProvider.Priority.NORMAL);
on sepolia using infura, but I didn't get this error even doing it multiple times. Do you have some more information so I can try again to reproduce the issue?