Note that most of the configurations could be overridden by environment variables or command line arguments when starting the node.
app.toml is a configuration file located in
~/.liked/config/app.tomlwhich controls the behaviour of node application logic.
The minimum price per gas which your node will accept a transaction. The amount part should be in decimal format, e.g.
1000.0nanolike, otherwise the node will fail to start. Note that if there is another node proposed a block including a transaction with gas price lower than this value, this node will still process the transaction. An ordinary LikeCoin transfer transaction takes about 80000 gas.
Validators are recommend to set a
minimum-gas-pricesto a non zero value, e.g.
minimum-gas-prices = "1.0nanolike"
Transaction that has a gas price lower than the configured value would not be processed by the validator. Forcing a minimum gas price to be set for all transactions helps combatting spam transactions.
[api]section are the config for the RESTful API. Basically, if you need to enable the RESTful API, you may set
enable = trueunder this section, and open the
1317port (or any other ports you configure by the
addressoption in this section) in the Docker config (or any other configs according to your setup).
Similar to the RESTful API, the gRPC API is controlled under the
[grpc]section. It is enabled by default, so you may just need to setup in Docker config.
[state-sync]section is the state sync functionality configs.
State sync is for other nodes to synchronize by state snapshots without downloading the blocks one by one.
It is disabled by default. To enable this option, set
snapshot-intervalto a multiple of 500 (or other value according to the
config.toml is a configuration file located in
.liked/config/config.tomlwhich controls node tendermint configurations.
Edit your node's moniker(name) when appeared in other connected node.
HTTP RPC endpoint for querying node infos, default is only for localhost.
Endpoint which other P2P nodes can connect with this node.
Bootstrap nodes which this node will connect to and obtain addresses from for more peers.
This node will connect to these nodes persistently.
This value controls the blocktime.