config: use peer.DefaultTrickleInterval as default val
This commit is contained in:
parent
475eafdc70
commit
eb8e117f86
1 changed files with 4 additions and 3 deletions
|
@ -27,6 +27,7 @@ import (
|
|||
"github.com/btcsuite/btcd/database"
|
||||
_ "github.com/btcsuite/btcd/database/ffldb"
|
||||
"github.com/btcsuite/btcd/mempool"
|
||||
"github.com/btcsuite/btcd/peer"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/btcsuite/go-socks/socks"
|
||||
flags "github.com/jessevdk/go-flags"
|
||||
|
@ -47,7 +48,7 @@ const (
|
|||
defaultMaxRPCConcurrentReqs = 20
|
||||
defaultDbType = "ffldb"
|
||||
defaultFreeTxRelayLimit = 15.0
|
||||
defaultTrickleTimeout = time.Second * 10
|
||||
defaultTrickleInterval = peer.DefaultTrickleInterval
|
||||
defaultBlockMinSize = 0
|
||||
defaultBlockMaxSize = 750000
|
||||
defaultBlockMinWeight = 0
|
||||
|
@ -141,7 +142,7 @@ type config struct {
|
|||
MinRelayTxFee float64 `long:"minrelaytxfee" description:"The minimum transaction fee in BTC/kB to be considered a non-zero fee."`
|
||||
FreeTxRelayLimit float64 `long:"limitfreerelay" description:"Limit relay of transactions with no transaction fee to the given amount in thousands of bytes per minute"`
|
||||
NoRelayPriority bool `long:"norelaypriority" description:"Do not require free or low-fee transactions to have high priority for relaying"`
|
||||
TrickleTimeout time.Duration `long:"trickletimeout" description:"Minimum time between attempts to send new inventory to a connected peer"`
|
||||
TrickleInterval time.Duration `long:"trickleinterval" description:"Minimum time between attempts to send new inventory to a connected peer"`
|
||||
MaxOrphanTxs int `long:"maxorphantx" description:"Max number of orphan transactions to keep in memory"`
|
||||
Generate bool `long:"generate" description:"Generate (mine) bitcoins using the CPU"`
|
||||
MiningAddrs []string `long:"miningaddr" description:"Add the specified payment address to the list of addresses to use for generated blocks -- At least one address is required if the generate option is set"`
|
||||
|
@ -417,7 +418,7 @@ func loadConfig() (*config, []string, error) {
|
|||
RPCCert: defaultRPCCertFile,
|
||||
MinRelayTxFee: mempool.DefaultMinRelayTxFee.ToBTC(),
|
||||
FreeTxRelayLimit: defaultFreeTxRelayLimit,
|
||||
TrickleTimeout: defaultTrickleTimeout,
|
||||
TrickleInterval: defaultTrickleInterval,
|
||||
BlockMinSize: defaultBlockMinSize,
|
||||
BlockMaxSize: defaultBlockMaxSize,
|
||||
BlockMinWeight: defaultBlockMinWeight,
|
||||
|
|
Loading…
Add table
Reference in a new issue