2017-03-15 21:03:01 +00:00
|
|
|
package params
|
|
|
|
|
2018-04-20 12:23:18 +00:00
|
|
|
import "github.com/ethereum/go-ethereum/p2p/discv5"
|
|
|
|
|
2017-03-15 21:03:01 +00:00
|
|
|
const (
|
2018-04-10 06:44:09 +00:00
|
|
|
// StatusDatabase path relative to DataDir.
|
|
|
|
StatusDatabase = "status-db"
|
|
|
|
|
2017-08-15 10:27:12 +00:00
|
|
|
// SendTransactionMethodName defines the name for a giving transaction.
|
|
|
|
SendTransactionMethodName = "eth_sendTransaction"
|
2018-04-12 16:17:10 +00:00
|
|
|
|
2018-04-09 08:18:22 +00:00
|
|
|
// AccountsMethodName defines the name for listing the currently signed accounts.
|
|
|
|
AccountsMethodName = "eth_accounts"
|
2018-04-12 16:17:10 +00:00
|
|
|
|
2018-04-09 08:18:22 +00:00
|
|
|
// PersonalSignMethodName defines the name for `personal.sign` API.
|
|
|
|
PersonalSignMethodName = "personal_sign"
|
2017-08-15 10:27:12 +00:00
|
|
|
|
2018-04-18 11:04:02 +00:00
|
|
|
// PersonalRecoverMethodName defines the name for `personal.recover` API.
|
|
|
|
PersonalRecoverMethodName = "personal_ecRecover"
|
|
|
|
|
2017-03-15 21:03:01 +00:00
|
|
|
// DefaultGas default amount of gas used for transactions
|
|
|
|
DefaultGas = 180000
|
|
|
|
|
2017-04-09 22:16:05 +00:00
|
|
|
// WhisperMinimumPoW amount of work for Whisper message to be added to sending queue
|
2020-05-14 05:40:40 +00:00
|
|
|
// We enforce a minimum as a bland spam prevention mechanism.
|
2020-05-13 13:10:04 +00:00
|
|
|
WhisperMinimumPoW = 0.000002
|
2017-04-09 22:16:05 +00:00
|
|
|
|
|
|
|
// WhisperTTL is time to live for messages, in seconds
|
|
|
|
WhisperTTL = 120
|
2017-03-18 19:00:40 +00:00
|
|
|
|
2020-01-08 11:12:23 +00:00
|
|
|
// WakuMinimumPoW amount of work for Whisper message to be added to sending queue
|
2020-05-14 05:40:40 +00:00
|
|
|
// We enforce a minimum as a bland spam prevention mechanism.
|
2020-05-13 13:10:04 +00:00
|
|
|
WakuMinimumPoW = 0.000002
|
2020-01-08 11:12:23 +00:00
|
|
|
|
|
|
|
// WakuTTL is time to live for messages, in seconds
|
|
|
|
WakuTTL = 120
|
|
|
|
|
2017-10-25 12:08:33 +00:00
|
|
|
// MainnetEthereumNetworkURL is URL where the upstream ethereum network is loaded to
|
2017-08-15 10:27:12 +00:00
|
|
|
// allow us avoid syncing node.
|
2017-10-25 12:08:33 +00:00
|
|
|
MainnetEthereumNetworkURL = "https://mainnet.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
|
2017-08-15 10:27:12 +00:00
|
|
|
|
2017-10-25 12:08:33 +00:00
|
|
|
// RopstenEthereumNetworkURL is URL where the upstream ethereum network is loaded to
|
2017-08-15 10:27:12 +00:00
|
|
|
// allow us avoid syncing node.
|
2017-10-25 12:08:33 +00:00
|
|
|
RopstenEthereumNetworkURL = "https://ropsten.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
|
2017-08-15 10:27:12 +00:00
|
|
|
|
2017-10-25 12:08:33 +00:00
|
|
|
// RinkebyEthereumNetworkURL is URL where the upstream ethereum network is loaded to
|
2017-08-15 10:27:12 +00:00
|
|
|
// allow us avoid syncing node.
|
2017-10-25 12:08:33 +00:00
|
|
|
RinkebyEthereumNetworkURL = "https://rinkeby.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
|
2017-08-15 10:27:12 +00:00
|
|
|
|
2019-03-14 08:43:32 +00:00
|
|
|
// GoerliEthereumNetworkURL is an open RPC endpoint to Goerli network
|
|
|
|
// Other RPC endpoints are available here: http://goerli.blockscout.com/
|
|
|
|
GoerliEthereumNetworkURL = "http://goerli.blockscout.com/"
|
|
|
|
|
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-10-16 21:54:56 +00:00
|
|
|
|
2019-03-14 08:43:32 +00:00
|
|
|
// GoerliNetworkID is id of goerli test network (PoA)
|
|
|
|
GoerliNetworkID = 5
|
|
|
|
|
2017-10-16 21:54:56 +00:00
|
|
|
// StatusChainNetworkID is id of a test network (private chain)
|
|
|
|
StatusChainNetworkID = 777
|
2018-04-20 12:23:18 +00:00
|
|
|
|
|
|
|
// WhisperDiscv5Topic used to register and search for whisper peers using discovery v5.
|
|
|
|
WhisperDiscv5Topic = discv5.Topic("whisper")
|
2018-08-27 09:32:14 +00:00
|
|
|
|
2018-09-21 14:09:31 +00:00
|
|
|
// MailServerDiscv5Topic used to register and search for mail server peers using discovery v5.
|
|
|
|
MailServerDiscv5Topic = discv5.Topic("whispermail")
|
|
|
|
|
2018-08-27 09:32:14 +00:00
|
|
|
// LESDiscoveryIdentifier is a prefix for topic used for LES peers discovery.
|
|
|
|
LESDiscoveryIdentifier = "LES2@"
|
2018-04-20 12:23:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// WhisperDiscv5Limits declares min and max limits for peers with whisper topic.
|
|
|
|
WhisperDiscv5Limits = Limits{2, 2}
|
2018-08-24 11:20:50 +00:00
|
|
|
// LesDiscoveryLimits default limits used if LES and discovery are enabled.
|
|
|
|
LesDiscoveryLimits = Limits{2, 2}
|
2017-05-17 16:23:30 +00:00
|
|
|
)
|