0

Is it possible to modify geth configuration when the node is running? For instance, open a port, add more parameter flag to control geth node functions.

I think maybe there are two ways: One is stop the node and re-launch with new parameters. but not sure it's feasible. the other one is use command api, if it permits, which command can be used to re-configure?

Thanks for you help.

0

It depends what you want to change:

There is a console to which you can 'geth attach' with some API

For most of the options you will need to restart, but instead of changing the command line options each time, i would suggest using toml configuration file and modify the options inside the file

  • Thanks.what's toml configuration file,is there some tool? Need I stop the node when modify the toml configuration file? Besides, can I also modify the parameter set in genesis.json after node launch. – Ntydrm May 26 at 11:51
  • github.com/ethereum/go-ethereum/wiki/Command-Line-Options in short create one with dumpconfig and load it later with --config <file> – KNK May 26 at 13:49
  • when modify configuration, need the node stop and then restart with new one,is it correct? – Ntydrm May 26 at 14:15
  • yes, the config is read on startup (look at it as predefined command line options), so you need to restart – KNK May 26 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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