|
|
@ -19,7 +19,6 @@ public class FeeMarketConfig implements FeeMarket { |
|
|
|
private final long targetGasUsed; |
|
|
|
private final long targetGasUsed; |
|
|
|
private final long decayRange; |
|
|
|
private final long decayRange; |
|
|
|
private final long initialBasefee; |
|
|
|
private final long initialBasefee; |
|
|
|
private final long perTxGaslimit; |
|
|
|
|
|
|
|
private final long slackCoefficient; |
|
|
|
private final long slackCoefficient; |
|
|
|
private final long maxGas; |
|
|
|
private final long maxGas; |
|
|
|
private final long gasIncrementAmount; |
|
|
|
private final long gasIncrementAmount; |
|
|
@ -29,14 +28,12 @@ public class FeeMarketConfig implements FeeMarket { |
|
|
|
final long targetGasUsed, |
|
|
|
final long targetGasUsed, |
|
|
|
final long slackCoefficient, |
|
|
|
final long slackCoefficient, |
|
|
|
final long decayRange, |
|
|
|
final long decayRange, |
|
|
|
final long initialBasefee, |
|
|
|
final long initialBasefee) { |
|
|
|
final long perTxGaslimit) { |
|
|
|
|
|
|
|
this.basefeeMaxChangeDenominator = basefeeMaxChangeDenominator; |
|
|
|
this.basefeeMaxChangeDenominator = basefeeMaxChangeDenominator; |
|
|
|
this.targetGasUsed = targetGasUsed; |
|
|
|
this.targetGasUsed = targetGasUsed; |
|
|
|
this.slackCoefficient = slackCoefficient; |
|
|
|
this.slackCoefficient = slackCoefficient; |
|
|
|
this.decayRange = decayRange; |
|
|
|
this.decayRange = decayRange; |
|
|
|
this.initialBasefee = initialBasefee; |
|
|
|
this.initialBasefee = initialBasefee; |
|
|
|
this.perTxGaslimit = perTxGaslimit; |
|
|
|
|
|
|
|
this.maxGas = slackCoefficient * targetGasUsed; |
|
|
|
this.maxGas = slackCoefficient * targetGasUsed; |
|
|
|
this.gasIncrementAmount = this.maxGas / 2 / this.decayRange; |
|
|
|
this.gasIncrementAmount = this.maxGas / 2 / this.decayRange; |
|
|
|
} |
|
|
|
} |
|
|
@ -71,11 +68,6 @@ public class FeeMarketConfig implements FeeMarket { |
|
|
|
return initialBasefee; |
|
|
|
return initialBasefee; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public long getPerTxGaslimit() { |
|
|
|
|
|
|
|
return perTxGaslimit; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public long getSlackCoefficient() { |
|
|
|
public long getSlackCoefficient() { |
|
|
|
return slackCoefficient; |
|
|
|
return slackCoefficient; |
|
|
|