linea_estimateGas now takes in consideration the balance of the sender to set the gasLimit for the first estimation, to avoid that setting the gasLimit to the max allowed by the configuration, could result in failures with not enough balance to pay for gas, so capping the gasLimit to what the sender can afford to pay, prevents this issue.
For linea_estimateGas to work, the in-process RPC must be enabled and ETH methods exposed, since the plugin need to be able to call eth_getBalance:
Xin-process-rpc-enabled=true
Xin-process-rpc-apis=["ETH"]
I also took the opportunity to fix the logId used to correlate log lines for a specific request.
linea_estimateGas
now takes in consideration the balance of the sender to set thegasLimit
for the first estimation, to avoid that setting thegasLimit
to the max allowed by the configuration, could result in failures with not enough balance to pay for gas, so capping thegasLimit
to what the sender can afford to pay, prevents this issue.For
linea_estimateGas
to work, the in-process RPC must be enabled andETH
methods exposed, since the plugin need to be able to calleth_getBalance
:Xin-process-rpc-enabled=true
Xin-process-rpc-apis=["ETH"]
I also took the opportunity to fix the
logId
used to correlate log lines for a specific request.