mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01:00
doc: correct comments
This commit is contained in:
parent
0d666ff7ce
commit
4af0ca8c30
@ -158,7 +158,7 @@ func normalizeAddress(addr string, chain *chaincfg.Params, useWallet bool) (stri
|
||||
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.
|
||||
func cleanAndExpandPath(path string) string {
|
||||
// Expand initial ~ to OS specific home directory.
|
||||
|
@ -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.
|
||||
func cleanAndExpandPath(path string) string {
|
||||
// Expand initial ~ to OS specific home directory.
|
||||
|
@ -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"`
|
||||
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"`
|
||||
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"`
|
||||
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"`
|
||||
BlocksOnly bool `long:"blocksonly" description:"Do not accept transactions from remote peers."`
|
||||
ConfigFile string `short:"C" long:"configfile" description:"Path to configuration file"`
|
||||
|
4
doc.go
4
doc.go
@ -36,11 +36,11 @@ Application Options:
|
||||
and banning misbehaving peers. (default: 100)
|
||||
--blockmaxsize= Maximum block size in bytes to be used when
|
||||
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
|
||||
--blockmaxweight= Maximum block weight to be used when creating a
|
||||
block (default: 3000000)
|
||||
--blockminweight= Mininum block weight to be used when creating a
|
||||
--blockminweight= Minimum block weight to be used when creating a
|
||||
block
|
||||
--blockprioritysize= Size in bytes for high-priority/low-fee
|
||||
transactions when creating a block (default:
|
||||
|
Loading…
Reference in New Issue
Block a user