@ -909,7 +909,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
@Option(
names={"--target-gas-limit"},
description=
"Sets target gas limit per block. If set each blocks gas limit will approach this setting over time if the current gas limit is different.")
"Sets target gas limit per block. If set each block's gas limit will approach this setting over time if the current gas limit is different.")
privatefinalLongtargetGasLimit=null;
@Option(
@ -1882,6 +1882,16 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
thrownewParameterException(
commandLine,"Please specify Enclave public key file path to enable privacy");
}
if(Wei.ZERO.compareTo(minTransactionGasPrice)<0){
// if gas is required, cannot use random keys to sign private tx
// ie --privacy-marker-transaction-signing-key-file must be set
if(privacyMarkerTransactionSigningKeyPath==null){
thrownewParameterException(
commandLine,
"Not a free gas network. --privacy-marker-transaction-signing-key-file must be specified and must be a funded account. Private transactions cannot be signed by random (non-funded) accounts in paid gas networks");