docs: use hyphens instead of snake case (#5802)

This commit is contained in:
Callum Waters
2020-12-17 08:59:58 +01:00
committed by GitHub
parent 6ef81c6074
commit ebff8a96a5
29 changed files with 206 additions and 207 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ go build
Use `maverick init` to initialize a single node and `maverick node` to run it. This will run it normally unless you use the misbehaviors flag as follows:
```bash
maverick node --proxy_app persistent_kvstore --misbehaviors double-vote,10
maverick node --proxy-app persistent_kvstore --misbehaviors double-vote,10
```
This would cause the node to vote twice in every round at height 10. To add more misbehaviors at different heights, append the next misbehavior and height after the first (with comma separation).
+2 -2
View File
@@ -818,7 +818,7 @@ func NewNode(config *cfg.Config,
err = sw.AddPersistentPeers(splitAndTrimEmpty(config.P2P.PersistentPeers, ",", " "))
if err != nil {
return nil, fmt.Errorf("could not add peers from persistent_peers field: %w", err)
return nil, fmt.Errorf("could not add peers from persistent-peers field: %w", err)
}
err = sw.AddUnconditionalPeerIDs(splitAndTrimEmpty(config.P2P.UnconditionalPeerIDs, ",", " "))
@@ -952,7 +952,7 @@ func (n *Node) OnStart() error {
// Always connect to persistent peers
err = n.sw.DialPeersAsync(splitAndTrimEmpty(n.config.P2P.PersistentPeers, ",", " "))
if err != nil {
return fmt.Errorf("could not dial peers from persistent_peers field: %w", err)
return fmt.Errorf("could not dial peers from persistent-peers field: %w", err)
}
// Run state sync