-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
En 12318 gascost txs frozen #4159
Conversation
cmd/node/config/config.toml
Outdated
@@ -66,6 +70,7 @@ | |||
# it is a good idea to increase the maximum number of opened files allowed by the operating system | |||
FullArchiveNumActivePersisters = 10 | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
log.Trace("creating economics data components") | ||
argsNewEconomicsData := economics.ArgsNewEconomicsData{ | ||
Economics: &ccf.economicsConfig, | ||
PenalizedTooMuchGasEnableEpoch: ccf.epochConfig.EnableEpochs.PenalizedTooMuchGasEnableEpoch, | ||
GasPriceModifierEnableEpoch: ccf.epochConfig.EnableEpochs.GasPriceModifierEnableEpoch, | ||
EpochNotifier: epochNotifier, | ||
BuiltInFunctionsCostHandler: builtInCostHandler, | ||
TxVersionChecker: txVersionChecker, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little strange why an "economics handler, whatever" depends upon the transaction version checker.
Understood why it has been done, not having a great suggestion if or how to refactor. Can be left as it is.
process/economics/economicsData.go
Outdated
mutGasLimitSettings sync.RWMutex | ||
gasPerDataByte uint64 | ||
minGasPrice uint64 | ||
extraGasLimitGuardedTx uint64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this also in gasConfig struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
args.EpochNotifier.RegisterNotifyHandler(ed) | ||
|
||
return ed, nil | ||
} | ||
|
||
func (ed *economicsData) setGasLimitSetting(gasLimitSetting config.GasLimitSetting) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
remained as technical debt this refactor from our last change
This PR adds an increase in the gas limit for guarded transactions, since there is extra processing for guardian signature verification.