Background
With the iterative development of oec, new startup parameters will be added, including parameters for performance optimization. There are more and more configurable parameters when starting a node.
Question
There are more and more parameters when starting a node, and there is no unified management method, so the parameters are difficult to manage.
Solution
Added the concept of node types, which include three types: rpc, validator, and archive. Node parameters are configured by default according to the type. The method is as follows:
- Start the rpc node:
Execute exchaind start with parameter --node-mode=rpc
- Start the validator node:
Execute exchaind start with the parameter --node-mode=val
- Start the archive node:
Execute exchaind start with the parameter --node-mode=archive
- Execute exchaind start node-mode -h to view detailed help instructions