5

I want to put lots of data into one transaction in private geth network. What is the max number which geth's targetgaslimit option can take?

1 Answer 1

3

Looking at how the flag is set in flags.go:

TargetGasLimitFlag = cli.StringFlag{
    Name:  "targetgaslimit",
    Usage: "Target gas limit sets the artificial target gas floor for the blocks to mine",
    Value: params.GenesisGasLimit.String(),
}

GenesisGasLimit itself is initialised to "million pi" as a big int:

params.GenesisGasLimit = big.NewInt(3141592)

Elsewhere in the code it continues to be handled as a big int. I can't immediately see anywhere in the code that imposes a limit on the value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.