Adding log statement for Geth Issue #17076

Should produce log message like "Current effective targetGasLimit=1234567"
This commit is contained in:
wbt 2018-06-26 12:27:22 -04:00 committed by GitHub
parent 598f786aab
commit d36bfcc164
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1182,6 +1182,7 @@ func RegisterEthStatsService(stack *node.Node, url string) {
func SetupNetwork(ctx *cli.Context) {
// TODO(fjl): move target gas limit into config
params.TargetGasLimit = ctx.GlobalUint64(TargetGasLimitFlag.Name)
log.Info("Current effective", "targetGasLimit", params.TargetGasLimit)
}
// MakeChainDatabase open an LevelDB using the flags passed to the client and will hard crash if it fails.