2017-03-15 21:03:01 +00:00
|
|
|
package params
|
|
|
|
|
2017-05-17 16:23:30 +00:00
|
|
|
import (
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
)
|
|
|
|
|
2017-03-15 21:03:01 +00:00
|
|
|
const (
|
2017-04-09 22:16:05 +00:00
|
|
|
// ClientIdentifier is client identifier to advertise over the network
|
|
|
|
ClientIdentifier = "StatusIM"
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// DataDir is default data directory used by statusd executable
|
|
|
|
DataDir = "statusd-data"
|
2017-03-28 09:04:52 +00:00
|
|
|
|
2017-04-28 08:49:15 +00:00
|
|
|
// KeyStoreDir is default directory where private keys are stored, relative to DataDir
|
|
|
|
KeyStoreDir = "keystore"
|
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// IPCFile is filename of exposed IPC RPC Server
|
|
|
|
IPCFile = "geth.ipc"
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// HTTPHost is host interface for the HTTP RPC server
|
|
|
|
HTTPHost = "localhost"
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// HTTPPort is HTTP-RPC port (replaced in unit tests)
|
|
|
|
HTTPPort = 8545
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-05-16 03:24:56 +00:00
|
|
|
// DevAPIModules is a list of modules to expose via any type of RPC (HTTP, IPC) during development
|
|
|
|
DevAPIModules = "db,eth,net,web3,shh,personal,admin"
|
|
|
|
|
|
|
|
// ProdAPIModules is a list of modules to expose via any type of RPC (HTTP, IPC) in production
|
|
|
|
ProdAPIModules = "eth,net,web3,shh,personal"
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// WSHost is a host interface for the websocket RPC server
|
|
|
|
WSHost = "localhost"
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// WSPort is a WS-RPC port (replaced in unit tests)
|
|
|
|
WSPort = 8546
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// MaxPeers is the maximum number of global peers
|
|
|
|
MaxPeers = 25
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// MaxPendingPeers is the maximum number of peers that can be pending in the
|
2017-03-15 21:03:01 +00:00
|
|
|
// handshake phase, counted separately for inbound and outbound connections.
|
2017-04-09 22:16:05 +00:00
|
|
|
MaxPendingPeers = 0
|
2017-03-15 21:03:01 +00:00
|
|
|
|
|
|
|
// DefaultGas default amount of gas used for transactions
|
|
|
|
DefaultGas = 180000
|
|
|
|
|
|
|
|
// DefaultFileDescriptorLimit is fd limit that database can use
|
|
|
|
DefaultFileDescriptorLimit = uint64(2048)
|
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// DatabaseCache is memory (in MBs) allocated to internal caching (min 16MB / database forced)
|
2017-05-16 12:09:52 +00:00
|
|
|
DatabaseCache = 16
|
2017-03-15 21:03:01 +00:00
|
|
|
|
2017-05-27 20:26:07 +00:00
|
|
|
// CHTRootConfigURL defines URL to file containing hard-coded CHT roots
|
|
|
|
// TODO remove this hack, once CHT sync is implemented on LES side
|
|
|
|
CHTRootConfigURL = "https://gist.githubusercontent.com/farazdagi/a8d36e2818b3b2b6074d691da63a0c36/raw/"
|
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// LogFile defines where to write logs to
|
|
|
|
LogFile = "geth.log"
|
2017-03-18 19:00:40 +00:00
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// LogLevel defines the minimum log level to report
|
|
|
|
LogLevel = "INFO"
|
|
|
|
|
2017-05-16 12:09:52 +00:00
|
|
|
// LogLevelSuccinct defines the log level when only errors are reported.
|
|
|
|
// Useful when the default INFO level becomes too verbose.
|
|
|
|
LogLevelSuccinct = "ERROR"
|
|
|
|
|
2017-05-02 14:30:11 +00:00
|
|
|
// LogToStderr defines whether logged info should also be output to os.Stderr
|
|
|
|
LogToStderr = true
|
|
|
|
|
2017-04-28 08:49:15 +00:00
|
|
|
// WhisperDataDir is directory where Whisper data is stored, relative to DataDir
|
|
|
|
WhisperDataDir = "wnode"
|
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// WhisperPort is Whisper node listening port
|
|
|
|
WhisperPort = 30379
|
|
|
|
|
|
|
|
// WhisperMinimumPoW amount of work for Whisper message to be added to sending queue
|
|
|
|
WhisperMinimumPoW = 0.001
|
|
|
|
|
|
|
|
// WhisperTTL is time to live for messages, in seconds
|
|
|
|
WhisperTTL = 120
|
2017-03-18 19:00:40 +00:00
|
|
|
|
2017-04-12 18:26:54 +00:00
|
|
|
// FirebaseNotificationTriggerURL is URL where FCM notification requests are sent to
|
|
|
|
FirebaseNotificationTriggerURL = "https://fcm.googleapis.com/fcm/send"
|
|
|
|
|
2017-05-03 14:24:48 +00:00
|
|
|
// MainNetworkID is id of the main network
|
|
|
|
MainNetworkID = 1
|
2017-05-02 14:30:11 +00:00
|
|
|
|
2017-05-16 03:24:56 +00:00
|
|
|
// RopstenNetworkID is id of a test network (on PoW)
|
|
|
|
RopstenNetworkID = 3
|
|
|
|
|
|
|
|
// RinkebyNetworkID is id of a test network (on PoA)
|
|
|
|
RinkebyNetworkID = 4
|
2017-05-11 13:20:27 +00:00
|
|
|
|
|
|
|
// BootClusterConfigFile is default config file containing boot node list (as JSON array)
|
|
|
|
BootClusterConfigFile = "ropsten.dev.json"
|
2017-03-15 21:03:01 +00:00
|
|
|
)
|
2017-05-17 16:23:30 +00:00
|
|
|
|
|
|
|
var (
|
2017-05-16 12:09:52 +00:00
|
|
|
RopstenNetGenesisHash = common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d")
|
|
|
|
RinkebyNetGenesisHash = common.HexToHash("0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177")
|
|
|
|
MainNetGenesisHash = common.HexToHash("0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3")
|
2017-05-17 16:23:30 +00:00
|
|
|
)
|