-
Notifications
You must be signed in to change notification settings - Fork 244
/
defaults.go
70 lines (50 loc) · 2.44 KB
/
defaults.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
60
61
62
63
64
65
66
67
68
69
70
package params
import "github.com/ethereum/go-ethereum/p2p/discv5"
const (
// StatusDatabase path relative to DataDir.
StatusDatabase = "status-db"
// SendTransactionMethodName defines the name for a giving transaction.
SendTransactionMethodName = "eth_sendTransaction"
// AccountsMethodName defines the name for listing the currently signed accounts.
AccountsMethodName = "eth_accounts"
// PersonalSignMethodName defines the name for `personal.sign` API.
PersonalSignMethodName = "personal_sign"
// PersonalRecoverMethodName defines the name for `personal.recover` API.
PersonalRecoverMethodName = "personal_ecRecover"
// DefaultGas default amount of gas used for transactions
DefaultGas = 180000
// WhisperMinimumPoW amount of work for Whisper message to be added to sending queue
// We enforce a minimum as a bland spam prevention mechanism.
WhisperMinimumPoW = 0.000002
// WhisperTTL is time to live for messages, in seconds
WhisperTTL = 120
// WakuMinimumPoW amount of work for Whisper message to be added to sending queue
// We enforce a minimum as a bland spam prevention mechanism.
WakuMinimumPoW = 0.000002
// WakuTTL is time to live for messages, in seconds
WakuTTL = 120
// MainnetEthereumNetworkURL is URL where the upstream ethereum network is loaded to
// allow us avoid syncing node.
MainnetEthereumNetworkURL = "https://mainnet.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
// GoerliEthereumNetworkURL is an open RPC endpoint to Goerli network
// Other RPC endpoints are available here: http://goerli.blockscout.com/
GoerliEthereumNetworkURL = "http://goerli.blockscout.com/"
// MainNetworkID is id of the main network
MainNetworkID = 1
// GoerliNetworkID is id of goerli test network (PoA)
GoerliNetworkID = 5
// StatusChainNetworkID is id of a test network (private chain)
StatusChainNetworkID = 777
// WhisperDiscv5Topic used to register and search for whisper peers using discovery v5.
WhisperDiscv5Topic = discv5.Topic("whisper")
// MailServerDiscv5Topic used to register and search for mail server peers using discovery v5.
MailServerDiscv5Topic = discv5.Topic("whispermail")
// LESDiscoveryIdentifier is a prefix for topic used for LES peers discovery.
LESDiscoveryIdentifier = "LES2@"
)
var (
// WhisperDiscv5Limits declares min and max limits for peers with whisper topic.
WhisperDiscv5Limits = Limits{2, 2}
// LesDiscoveryLimits default limits used if LES and discovery are enabled.
LesDiscoveryLimits = Limits{2, 2}
)