doc: correct comments

This commit is contained in:
alex 2023-12-20 14:26:18 +00:00 committed by John C. Vernaleo
parent 0d666ff7ce
commit 4af0ca8c30
4 changed files with 6 additions and 6 deletions

View File

@ -158,7 +158,7 @@ func normalizeAddress(addr string, chain *chaincfg.Params, useWallet bool) (stri
return addr, nil return addr, nil
} }
// cleanAndExpandPath expands environement variables and leading ~ in the // cleanAndExpandPath expands environment variables and leading ~ in the
// passed path, cleans the result, and returns it. // passed path, cleans the result, and returns it.
func cleanAndExpandPath(path string) string { func cleanAndExpandPath(path string) string {
// Expand initial ~ to OS specific home directory. // Expand initial ~ to OS specific home directory.

View File

@ -76,7 +76,7 @@ func main() {
} }
} }
// cleanAndExpandPath expands environement variables and leading ~ in the // cleanAndExpandPath expands environment variables and leading ~ in the
// passed path, cleans the result, and returns it. // passed path, cleans the result, and returns it.
func cleanAndExpandPath(path string) string { func cleanAndExpandPath(path string) string {
// Expand initial ~ to OS specific home directory. // Expand initial ~ to OS specific home directory.

View File

@ -105,9 +105,9 @@ type config struct {
BanDuration time.Duration `long:"banduration" description:"How long to ban misbehaving peers. Valid time units are {s, m, h}. Minimum 1 second"` BanDuration time.Duration `long:"banduration" description:"How long to ban misbehaving peers. Valid time units are {s, m, h}. Minimum 1 second"`
BanThreshold uint32 `long:"banthreshold" description:"Maximum allowed ban score before disconnecting and banning misbehaving peers."` BanThreshold uint32 `long:"banthreshold" description:"Maximum allowed ban score before disconnecting and banning misbehaving peers."`
BlockMaxSize uint32 `long:"blockmaxsize" description:"Maximum block size in bytes to be used when creating a block"` BlockMaxSize uint32 `long:"blockmaxsize" description:"Maximum block size in bytes to be used when creating a block"`
BlockMinSize uint32 `long:"blockminsize" description:"Mininum block size in bytes to be used when creating a block"` BlockMinSize uint32 `long:"blockminsize" description:"Minimum block size in bytes to be used when creating a block"`
BlockMaxWeight uint32 `long:"blockmaxweight" description:"Maximum block weight to be used when creating a block"` BlockMaxWeight uint32 `long:"blockmaxweight" description:"Maximum block weight to be used when creating a block"`
BlockMinWeight uint32 `long:"blockminweight" description:"Mininum block weight to be used when creating a block"` BlockMinWeight uint32 `long:"blockminweight" description:"Minimum block weight to be used when creating a block"`
BlockPrioritySize uint32 `long:"blockprioritysize" description:"Size in bytes for high-priority/low-fee transactions when creating a block"` BlockPrioritySize uint32 `long:"blockprioritysize" description:"Size in bytes for high-priority/low-fee transactions when creating a block"`
BlocksOnly bool `long:"blocksonly" description:"Do not accept transactions from remote peers."` BlocksOnly bool `long:"blocksonly" description:"Do not accept transactions from remote peers."`
ConfigFile string `short:"C" long:"configfile" description:"Path to configuration file"` ConfigFile string `short:"C" long:"configfile" description:"Path to configuration file"`

4
doc.go
View File

@ -36,11 +36,11 @@ Application Options:
and banning misbehaving peers. (default: 100) and banning misbehaving peers. (default: 100)
--blockmaxsize= Maximum block size in bytes to be used when --blockmaxsize= Maximum block size in bytes to be used when
creating a block (default: 750000) creating a block (default: 750000)
--blockminsize= Mininum block size in bytes to be used when --blockminsize= Minimum block size in bytes to be used when
creating a block creating a block
--blockmaxweight= Maximum block weight to be used when creating a --blockmaxweight= Maximum block weight to be used when creating a
block (default: 3000000) block (default: 3000000)
--blockminweight= Mininum block weight to be used when creating a --blockminweight= Minimum block weight to be used when creating a
block block
--blockprioritysize= Size in bytes for high-priority/low-fee --blockprioritysize= Size in bytes for high-priority/low-fee
transactions when creating a block (default: transactions when creating a block (default: