Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: save Mainnet config with inline comments #1143

Merged
merged 3 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ func CreateNode(numValidators int, chain genesis.ChainType, workingDir string,
if err := genDoc.SaveToFile(genPath); err != nil {
return nil, nil, err
}
conf := config.DefaultConfigMainnet()
if err := conf.Save(confPath); err != nil {
err := config.SaveMainnetConfig(confPath)
if err != nil {
return nil, nil, err
}
case genesis.Testnet:
Expand Down
6 changes: 4 additions & 2 deletions config/example_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
# `moniker` is a custom human-readable name for this node.
## moniker = ""

# `session_timeout` is a timeout for a session to be opened.
# `session_timeout` is a timeout for a download session to remain open.
# When a block download request is sent, this timer starts. If there is no activity from the target Node,
# the session will be closed after the timeout and try to get the block from another Node.
# Default is `10s`.
## session_timeout = "10s"

Expand Down Expand Up @@ -141,7 +143,7 @@
[grpc]

# `enable` indicates whether gRPC service should be enabled or not.
# Default is `false`.
# Default is `true`.
## enable = true

# `enable_wallet` indicates whether Wallet service should be enabled or not.
Expand Down
Loading