-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.go
59 lines (54 loc) · 2.16 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package constant
import (
"time"
"github.com/cybriq/p9/pkg/amt"
"github.com/cybriq/p9/pkg/appdata"
"github.com/cybriq/p9/pkg/blockchain"
"github.com/cybriq/p9/pkg/peer"
)
// A lotta constants that probably aren't being used
const (
// defaultConfigFilename = "conf.json"
// defaultDataDirname = "node"
DefaultP2PPort = 11047
DefaultRPCListener = "127.0.0.1"
DefaultMaxPeers = 23
DefaultBanDuration = time.Hour * 24
DefaultBanThreshold = 100
DefaultMaxRPCClients = 10
DefaultMaxRPCWebsockets = 25
DefaultMaxRPCConcurrentReqs = 20
DefaultDbType = "ffldb"
DefaultFreeTxRelayLimit = 15.0
DefaultTrickleInterval = peer.DefaultTrickleInterval
DefaultBlockMaxSize = 200000
DefaultBlockMaxWeight = 3000000
BlockMaxSizeMin = 1000
BlockMaxSizeMax = blockchain.MaxBlockBaseSize - 1000
BlockMaxWeightMin = 4000
BlockMaxWeightMax = blockchain.MaxBlockWeight - 4000
DefaultMaxOrphanTransactions = 100
DefaultSigCacheMaxSize = 100000
// DefaultBlockPrioritySize is the default size in bytes for high - priority / low-fee transactions. It is used to
// help determine which are allowed into the mempool and consequently affects their relay and inclusion when
// generating block templates.
DefaultBlockPrioritySize = 50000
// DefaultMinRelayTxFee is the minimum fee in satoshi that is required for a
// transaction to be treated as free for relay and mining purposes. It is also
// used to help determine if a transaction is considered dust and as a base for
// calculating minimum required fees for larger transactions. This value is in
// Satoshi/1000 bytes.
DefaultMinRelayTxFee = amt.Amount(1000)
DefaultDataDirname = "wallet"
DefaultCAFilename = "wallet.cert"
DefaultConfigFilename = "conf.json"
DefaultLogLevel = "info"
DefaultLogDirname = ""
DefaultLogFilename = "wallet/log"
DefaultRPCMaxClients = 10
DefaultRPCMaxWebsockets = 25
WalletDbName = "wallet.db"
// DbName is
DbName = "wallet.db"
)
var DefaultHomeDir = appdata.Dir("pod", false)