status-go/params/defaults.go

67 lines
2.2 KiB
Go

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
WhisperMinimumPoW = 0.001
// WhisperTTL is time to live for messages, in seconds
WhisperTTL = 120
// MainnetEthereumNetworkURL is URL where the upstream ethereum network is loaded to
// allow us avoid syncing node.
MainnetEthereumNetworkURL = "https://mainnet.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
// RopstenEthereumNetworkURL is URL where the upstream ethereum network is loaded to
// allow us avoid syncing node.
RopstenEthereumNetworkURL = "https://ropsten.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
// RinkebyEthereumNetworkURL is URL where the upstream ethereum network is loaded to
// allow us avoid syncing node.
RinkebyEthereumNetworkURL = "https://rinkeby.infura.io/nKmXgiFgc2KqtoQ8BCGJ"
// MainNetworkID is id of the main network
MainNetworkID = 1
// RopstenNetworkID is id of a test network (on PoW)
RopstenNetworkID = 3
// RinkebyNetworkID is id of a test network (on PoA)
RinkebyNetworkID = 4
// 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")
// 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}
)