2017-07-13 20:30:33 +03:00
|
|
|
# Sample Server Configuration File for Grin
|
|
|
|
#
|
|
|
|
# When running the grin executable without specifying any command line
|
|
|
|
# arguments, it will look for this file in three places, in the following
|
|
|
|
# order:
|
|
|
|
#
|
|
|
|
# -The working directory
|
|
|
|
# -The directory in which the executable resides
|
|
|
|
# -[user home]/.grin
|
|
|
|
#
|
|
|
|
|
2017-10-12 19:56:44 +03:00
|
|
|
#########################################
|
|
|
|
### SERVER CONFIGURATION ###
|
|
|
|
#########################################
|
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
#Server connection details
|
|
|
|
[server]
|
|
|
|
|
|
|
|
#the address on which services will listen, e.g. Transaction Pool
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
api_http_addr = "127.0.0.1:13413"
|
|
|
|
|
|
|
|
#the directory, relative to current, in which the grin blockchain
|
|
|
|
#is stored
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
db_root = ".grin"
|
|
|
|
|
|
|
|
#How to seed this server, can be None, List or WebStatic
|
2017-11-17 02:17:56 +03:00
|
|
|
#
|
|
|
|
#seeding_type = "None"
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-11-17 02:17:56 +03:00
|
|
|
#If seeding_type = List, the list of peers to connect to.
|
|
|
|
#
|
2017-07-13 20:30:33 +03:00
|
|
|
#seeds = ["192.168.0.1:8080","192.168.0.2:8080"]
|
|
|
|
|
2017-11-16 00:49:15 +03:00
|
|
|
#The chain type, which defines the genesis block and the set of cuckoo
|
|
|
|
#parameters used for mining. Can be:
|
2017-08-09 19:40:23 +03:00
|
|
|
#AutomatedTesting - For CI builds and instant blockchain creation
|
2017-10-04 20:44:22 +03:00
|
|
|
#UserTesting - For regular user testing (cuckoo 16)
|
2017-11-16 00:49:15 +03:00
|
|
|
#Testnet1 - Full production cuckoo parameter (cuckoo 30)
|
2017-11-17 02:17:56 +03:00
|
|
|
#
|
|
|
|
#chain_type = "UserTesting"
|
2017-07-13 20:30:33 +03:00
|
|
|
|
|
|
|
#7 = Bit flags for FULL_NODE, this structure needs to be changed
|
|
|
|
#internally to make it more configurable
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
capabilities = [7]
|
2017-09-22 00:12:07 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
#The P2P server details (i.e. the server that communicates with other
|
|
|
|
#grin server nodes
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
[server.p2p_config]
|
2017-11-16 22:46:30 +03:00
|
|
|
host = "0.0.0.0"
|
2017-07-13 20:30:33 +03:00
|
|
|
port = 13414
|
2017-09-22 00:12:07 +03:00
|
|
|
|
2017-10-12 19:56:44 +03:00
|
|
|
#########################################
|
|
|
|
### LOGGING CONFIGURATION ###
|
|
|
|
#########################################
|
|
|
|
|
|
|
|
[logging]
|
|
|
|
|
|
|
|
# Whether to log to stdout
|
|
|
|
log_to_stdout = true
|
|
|
|
|
|
|
|
# Log level for stdout: Critical, Error, Warning, Info, Debug, Trace
|
|
|
|
stdout_log_level = "Debug"
|
|
|
|
|
|
|
|
# Whether to log to a file
|
|
|
|
log_to_file = true
|
|
|
|
|
|
|
|
# Log level for file: Critical, Error, Warning, Info, Debug, Trace
|
|
|
|
file_log_level = "Trace"
|
|
|
|
|
|
|
|
# Log file path
|
|
|
|
log_file_path = "grin.log"
|
|
|
|
|
|
|
|
# Whether to append to the log file (true), or replace it on every run (false)
|
|
|
|
log_file_append = true
|
|
|
|
|
|
|
|
#########################################
|
|
|
|
### MINING CONFIGURATION ###
|
|
|
|
#########################################
|
|
|
|
|
2017-09-22 00:12:07 +03:00
|
|
|
#Mining details. This section is optional. If it's not here, the server
|
|
|
|
#will default to not mining.
|
2017-07-13 20:30:33 +03:00
|
|
|
[mining]
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
#flag whether mining is enabled
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-10-04 20:44:22 +03:00
|
|
|
enable_mining = false
|
2017-07-13 20:30:33 +03:00
|
|
|
|
2017-07-18 23:57:09 +03:00
|
|
|
#Whether to use cuckoo-miner, and related parameters
|
|
|
|
|
|
|
|
use_cuckoo_miner = true
|
|
|
|
|
2017-08-03 19:57:55 +03:00
|
|
|
#Whether to use async mode for cuckoo miner, if the plugin supports it.
|
|
|
|
#this allows for many searches to be run in parallel, e.g. if the system
|
2017-09-29 19:58:43 +03:00
|
|
|
#has multiple GPUs, or if you want to mine using multiple plugins
|
2017-08-03 19:57:55 +03:00
|
|
|
|
|
|
|
cuckoo_miner_async_mode = false
|
|
|
|
|
2017-07-18 23:57:09 +03:00
|
|
|
#If using cuckoo_miner, the directory in which plugins are installed
|
|
|
|
#if not specified, grin will look in the directory /deps relative
|
|
|
|
#to the executable
|
|
|
|
|
2017-08-29 19:27:01 +03:00
|
|
|
#cuckoo_miner_plugin_dir = "target/debug/plugins"
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-08-22 21:23:54 +03:00
|
|
|
#The amount of time, in seconds, to attempt to mine on a particular
|
|
|
|
#header before stopping and re-collecting transactions from the pool
|
|
|
|
|
2017-09-26 20:58:56 +03:00
|
|
|
attempt_time_per_block = 90
|
2017-08-22 21:23:54 +03:00
|
|
|
|
2017-07-13 20:30:33 +03:00
|
|
|
#the wallet reciever to which coinbase rewards will be sent
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-11-19 09:50:01 +03:00
|
|
|
wallet_listener_url = "http://127.0.0.1:13415"
|
2017-07-13 20:30:33 +03:00
|
|
|
|
|
|
|
#whether to ignore the reward (mostly for testing)
|
2017-07-18 23:57:09 +03:00
|
|
|
|
2017-11-01 23:33:32 +03:00
|
|
|
burn_reward = false
|
2017-07-13 20:30:33 +03:00
|
|
|
|
|
|
|
#testing value, optional
|
|
|
|
#slow_down_in_millis = 30
|
2017-09-26 20:58:56 +03:00
|
|
|
|
|
|
|
#########################################
|
|
|
|
### CUCKOO MINER PLUGIN CONFIGURATION ###
|
|
|
|
#########################################
|
|
|
|
|
|
|
|
# These entries configure instances of cuckoo miner
|
|
|
|
# plugins if the 'use_cuckoo_miner' value above is
|
|
|
|
# set to 'true'.
|
|
|
|
#
|
|
|
|
# Multiple plugins can be specified, (e.g. a cpu
|
|
|
|
# miner and a gpu miner running in parallel). However,
|
|
|
|
# if 'use_async_mode' above is set to 'false', only
|
|
|
|
# the first plugin specified will be used for mining
|
|
|
|
# in single-threaded mode
|
|
|
|
|
|
|
|
# You'll likely get the best performance using a
|
|
|
|
# single GPU and single CPU plugin in parallel
|
|
|
|
|
|
|
|
#The fastest cpu algorithm, but consumes the most memory
|
2017-09-29 19:58:43 +03:00
|
|
|
#Also requires instructions that aren't available on
|
|
|
|
#older processors. In this case, use mean_compat_cpu
|
|
|
|
#instead
|
|
|
|
#[[mining.cuckoo_miner_plugin_config]]
|
|
|
|
#type_filter = "mean_cpu"
|
|
|
|
#parameter_list = {NUM_THREADS=4, NUM_TRIMS=68}
|
2017-09-26 20:58:56 +03:00
|
|
|
|
2017-09-29 19:58:43 +03:00
|
|
|
#Same as above, but for older processors. Will be slightly
|
|
|
|
#slower.
|
2017-09-26 20:58:56 +03:00
|
|
|
[[mining.cuckoo_miner_plugin_config]]
|
2017-09-29 19:58:43 +03:00
|
|
|
type_filter = "mean_compat_cpu"
|
|
|
|
parameter_list = {NUM_THREADS=4, NUM_TRIMS=68}
|
2017-09-26 20:58:56 +03:00
|
|
|
|
|
|
|
#note lean_cpu currently has a bug which prevents it from
|
|
|
|
#working with threads > 1
|
|
|
|
|
|
|
|
#[[mining.cuckoo_miner_plugin_config]]
|
|
|
|
#type_filter = "lean_cpu"
|
|
|
|
#parameter_list = {NUM_THREADS=1, NUM_TRIMS=7}
|
|
|
|
|
|
|
|
#CUDA verion of lean miner
|
|
|
|
#Can currently be used only in Production (30) Mode
|
2017-10-04 20:44:22 +03:00
|
|
|
#This plugin is not built by default. To build:
|
|
|
|
#1) Ensure the latest cuda toolkit is installed
|
|
|
|
# (nvcc should be on the pat)
|
|
|
|
#2) Uncomment the 'build-cuda-plugin' feature
|
|
|
|
# in pow/Cargo.toml
|
2017-09-26 20:58:56 +03:00
|
|
|
|
|
|
|
#[[mining.cuckoo_miner_plugin_config]]
|
|
|
|
#type_filter = "lean_cuda"
|
|
|
|
#parameter_list = {}
|