Guest User

[Mainnet] config-node.toml

a guest
Mar 4th, 2020
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.08 KB | None | 0 0
  1.  
  2. [nano_pow_server]
  3.  
  4. # Enable or disable starting Nano PoW Server as a child process.
  5. # type:bool
  6. enable = false
  7.  
  8. # Path to the nano_pow_server executable.
  9. # type:string,path
  10. # nano_pow_server_path = ""
  11.  
  12. [node]
  13.  
  14. # Number of active elections. Elections beyond this limit have limited survival time.
  15. # Warning: modifying this value may result in a lower confirmation rate.
  16. # type:uint64,[250..]
  17. active_elections_size = 10000
  18.  
  19. # Enable or disable local host peering.
  20. # type:bool
  21. allow_local_peers = true
  22.  
  23. # Backup the ledger database before performing upgrades.
  24. # Warning: uses more disk storage and increases startup time when upgrading.
  25. # type:bool
  26. backup_before_upgrade = true
  27.  
  28. # Outbound traffic limit in bytes/sec after which messages will be dropped.
  29. # Note: changing to unlimited bandwidth is not recommended for limited connections.
  30. # type:uint64
  31. bandwidth_limit = 5242880
  32.  
  33. # The maximum time the block processor can continously process blocks for.
  34. # type:milliseconds
  35. block_processor_batch_max_time = 5000
  36.  
  37. # Number of outbound bootstrap connections. Must be a power of 2. Defaults to 4.
  38. # Warning: a larger amount of connections may use substantially more system memory.
  39. # type:uint64
  40. bootstrap_connections = 4
  41.  
  42. # Maximum number of inbound bootstrap connections. Defaults to 64.
  43. # Warning: a larger amount of connections may use additional system memory.
  44. # type:uint64
  45. bootstrap_connections_max = 64
  46.  
  47. # Change bootstrap threshold (online stake / 256 * bootstrap_fraction_numerator).
  48. # type:uint32
  49. bootstrap_fraction_numerator = 1
  50.  
  51. # Minimum write batching time when there are blocks pending confirmation height.
  52. # type:milliseconds
  53. conf_height_processor_batch_min_time = 50
  54.  
  55. # Maximum confirmation history size. If tracking the rate of block confirmations, the websocket feature is recommended instead.
  56. # type:uint64
  57. confirmation_history_size = 2048
  58.  
  59. # Enable or disable voting. Enabling this option requires additional system resources, namely increased CPU, bandwidth and disk usage.
  60. # type:bool
  61. enable_voting = true
  62.  
  63. # The external address of this node (NAT). If not set, the node will request this information via UPnP.
  64. # type:string,ip
  65. external_address = "::"
  66.  
  67. # The external port number of this node (NAT). Only used if external_address is set.
  68. # type:uint16
  69. external_port = 0
  70.  
  71. # Mode controlling frontier confirmation rate.
  72. # type:string,{auto,always,disabled}
  73. frontiers_confirmation = "auto"
  74.  
  75. # Number of threads dedicated to I/O opeations. Defaults to the number of CPU threads, and at least 4.
  76. # type:uint64
  77. io_threads = 4
  78.  
  79. # Maximum open lmdb databases. Increase default if more than 100 wallets is required.
  80. # Note: external management is recommended when a large amounts of wallets are required (see https://docs.nano.org/integration-guides/key-management/).
  81. # type:uint64
  82. lmdb_max_dbs = 128
  83.  
  84. # Maximum allowed difficulty multiplier for work generation.
  85. # type:double,[1..]
  86. max_work_generate_multiplier = 64.000000000000000
  87.  
  88. # Number of threads dedicated to processing network messages. Defaults to the number of CPU threads, and at least 4.
  89. # type:uint64
  90. network_threads = 4
  91.  
  92. # Online weight minimum required to confirm a block.
  93. # type:string,amount,raw
  94. online_weight_minimum = "1000000000000000000000000000000"
  95.  
  96. # Percentage of votes required to confirm blocks. A value below 50 is not recommended.
  97. # type:uint64
  98. online_weight_quorum = 50
  99.  
  100. # Password fanout factor.
  101. # type:uint64
  102. password_fanout = 1024
  103.  
  104. # Node peering port.
  105. # type:uint16
  106. peering_port = 9075
  107.  
  108. # Time to sleep between batch work generation attempts. Reduces max CPU usage at the expense of a longer generation time.
  109. # type:nanoseconds
  110. pow_sleep_interval = 0
  111.  
  112. # A list of "address:port" entries to identify preconfigured peers.
  113. preconfigured_peers = ["peers.bitcoin.black"]
  114.  
  115. # A list of representative account addresses used when creating new accounts in internal wallets.
  116. preconfigured_representatives = [
  117. "bcb_3zscrcrgbusx7ck3pgu9xfe5fe5a6ecewguweh1dry7ic7xg9cnmfk1r6ceg", "bcb_1t4fnppzaoa56t67wbxj99n68pnednh6x53158fxej63xdwj849g78c7nuc5", "bcb_1nw3ize5wbfq5erwyo9ofggw3o3tmhfrcomcekn5sfkpt3yrkxmz3fcm8u9d", "bcb_1pwao33mhd164nptat8tq4rdeerpi6pdh7ewophfqknt8m5mmyudckpjary7", "bcb_3q3kpyzotq5njbieg6jq5h3afybe4issnmnoj9auu1mk6k9jqh3p9gotx5fy", "bcb_3zt7r4frys7ycagcspc5pn5kum5yk1m9m7jew5fijo4dng837mbdp4wy6bfg"]
  118.  
  119. # Minimum receive amount. Only affects node wallets. A large amount is recommended to avoid automatic work generation for tiny transactions.
  120. # type:string,amount,raw
  121. receive_minimum = "10000000000000000000000000000"
  122.  
  123. # Number of additional threads dedicated to signature verification. Defaults to the number of CPU threads minus 1.
  124. # type:uint64
  125. signature_checker_threads = 3
  126.  
  127. # Maximum number of incoming TCP connections.
  128. # type:uint64
  129. tcp_incoming_connections_max = 1024
  130.  
  131. # Timeout for TCP connect-, read- and write operations.
  132. # Warning: a low value (e.g., below 5 seconds) may result in TCP connections failing.
  133. # type:seconds
  134. tcp_io_timeout = 15
  135.  
  136. # Number of seconds before deleting an unchecked entry.
  137. # Warning: lower values (e.g., 3600 seconds, or 1 hour) may result in unsuccessful bootstraps, especially a bootstrap from scratch.
  138. # type:seconds
  139. unchecked_cutoff_time = 14400
  140.  
  141. # If true, allocate memory from memory pools. Enabling this may improve performance. Memory is never released to the OS.
  142. # type:bool
  143. use_memory_pools = true
  144.  
  145. # Delay before votes are sent to allow for efficient bundling of hashes in votes.
  146. # type:milliseconds
  147. vote_generator_delay = 50
  148.  
  149. # Number of bundled hashes required for an additional generator delay.
  150. # type:uint64,[1..11]
  151. vote_generator_threshold = 3
  152.  
  153. # Local representatives do not vote if the delegated weight is under this threshold. Saves on system resources.
  154. # type:string,amount,raw
  155. vote_minimum = "10000000000000000000000000000"
  156.  
  157. # A list of "address:port" entries to identify work peers.
  158. work_peers = []
  159.  
  160. # Number of threads dedicated to CPU generated work. Defaults to all available CPU threads.
  161. # type:uint64
  162. work_threads = 4
  163.  
  164. # Time between checks for confirmation and re-generating higher difficulty work if unconfirmed, for blocks in the work watcher.
  165. # type:seconds
  166. work_watcher_period = 5
  167.  
  168. [node.diagnostics.txn_tracking]
  169.  
  170. # Enable or disable database transaction tracing.
  171. # type:bool
  172. enable = true
  173.  
  174. # Ignore any block processor writes less than block_processor_batch_max_time.
  175. # type:bool
  176. ignore_writes_below_block_processor_max_time = true
  177.  
  178. # Log stacktrace when read transactions are held longer than this duration.
  179. # type:milliseconds
  180. min_read_txn_time = 5000
  181.  
  182. # Log stacktrace when write transactions are held longer than this duration.
  183. # type:milliseconds
  184. min_write_txn_time = 500
  185.  
  186. [node.experimental]
  187.  
  188. # A list of "address:port" entries to identify work peers for secondary work generation.
  189. secondary_work_peers = ["127.0.0.1:8076"]
  190.  
  191. [node.httpcallback]
  192.  
  193. # Callback address.
  194. # type:string,ip
  195. address = "[::1]"
  196.  
  197. # Callback port number.
  198. # type:uint16
  199. port = 8180
  200.  
  201. # Callback target path.
  202. # type:string,uri
  203. target = "/callback"
  204.  
  205. [node.ipc.local]
  206.  
  207. # If enabled, certain unsafe RPCs can be used. Not recommended for production systems.
  208. # type:bool
  209. #allow_unsafe = false
  210.  
  211. # Enable or disable IPC via local domain socket.
  212. # type:bool
  213. #enable = false
  214.  
  215. # Timeout for requests.
  216. # type:seconds
  217. #io_timeout = 15
  218.  
  219. # Path to the local domain socket.
  220. # type:string
  221. #path = "/tmp/nano"
  222.  
  223. [node.ipc.tcp]
  224.  
  225. # Enable or disable IPC via TCP server.
  226. # type:bool
  227. enable = false
  228.  
  229. # Timeout for requests.
  230. # type:seconds
  231. #io_timeout = 15
  232.  
  233. # Server listening port.
  234. # type:uint16
  235. port = 9077
  236.  
  237. [node.logging]
  238.  
  239. # Log when a block is updated while in active transactions.
  240. # type:bool
  241. active_update = true
  242.  
  243. # Log bulk pull errors and messages.
  244. # type:bool
  245. bulk_pull = true
  246.  
  247. # If enabled, immediately flush new entries to log file.
  248. # Warning: this may negatively affect logging performance.
  249. # type:bool
  250. flush = true
  251.  
  252. # Log if insufficient work is detected.
  253. # type:bool
  254. insufficient_work = true
  255.  
  256. # Log ledger related messages.
  257. # type:bool
  258. ledger = true
  259.  
  260. # Log when a duplicate block is attempted inserted into the ledger.
  261. # type:bool
  262. ledger_duplicate = true
  263.  
  264. # Log IPC related activity.
  265. # type:bool
  266. log_ipc = true
  267.  
  268. # Log to standard error in addition to the log file. Not recommended for production systems.
  269. # type:bool
  270. log_to_cerr = true
  271.  
  272. # Maximum log file size in bytes.
  273. # type:uint64
  274. max_size = 134217728
  275.  
  276. # Minimum time that must pass for low priority entries to be logged.
  277. # Warning: decreasing this value may result in a very large amount of logs.
  278. # type:milliseconds
  279. min_time_between_output = 5
  280.  
  281. # Log network related messages.
  282. # type:bool
  283. network = true
  284.  
  285. # Log keepalive related messages.
  286. # type:bool
  287. network_keepalive = false
  288.  
  289. # Log network errors and message details.
  290. # type:bool
  291. network_message = false
  292.  
  293. # Log node-id handshake related messages.
  294. # type:bool
  295. network_node_id_handshake = false
  296.  
  297. # Log network packet activity.
  298. # type:bool
  299. network_packet = false
  300.  
  301. # Log publish related network messages.
  302. # type:bool
  303. network_publish = false
  304.  
  305. # Log TCP timeouts.
  306. # type:bool
  307. network_timeout = false
  308.  
  309. # Log node startup and shutdown messages.
  310. # type:bool
  311. node_lifetime_tracing = false
  312.  
  313. # Log file rotation size in character count.
  314. # type:uint64
  315. rotation_size = 4194304
  316.  
  317. # Keep log entries on single lines.
  318. # type:bool
  319. single_line_record = false
  320.  
  321. # Log detailed timing information for various node operations.
  322. # type:bool
  323. timing = false
  324.  
  325. # Log UPNP discovery details..
  326. # Warning: this may include information.
  327. # about discovered devices, such as product identification. Please review before sharing logs.
  328. # type:bool
  329. upnp_details = true
  330.  
  331. # Vote logging. Enabling this option leads to a high volume.
  332. # of log messages which may affect node performance.
  333. # type:bool
  334. vote = true
  335.  
  336. # Log work generation timing information.
  337. # type:bool
  338. work_generation_time = true
  339.  
  340. [node.rocksdb]
  341.  
  342. # Size (MB) of the block cache; A larger number will increase performance of read operations. At least 512MB is recommended.
  343. # type:uint64
  344. block_cache = 64
  345.  
  346. # Uncompressed data (KBs) per block. Increasing block size decreases memory usage and space amplification, but increases read amplification. 16 is recommended.
  347. # type:uint32
  348. block_size = 4
  349.  
  350. # Number of bits to use with a bloom filter. Helps with point reads but uses more memory. 0 disables the bloom filter, 10 is recommended.
  351. # type:uint32
  352. bloom_filter_bits = 0
  353.  
  354. # Whether index and filter blocks are stored in block_cache, true is recommended.
  355. # type:bool
  356. cache_index_and_filter_blocks = false
  357.  
  358. # Whether to use the RocksDB backend for the ledger database.
  359. # type:bool
  360. enable = false
  361.  
  362. # Whether to use 2 separate write queues for memtable/WAL, true is recommended.
  363. # type:bool
  364. enable_pipelined_write = false
  365.  
  366. # Number of threads to use with the background compaction and flushing. Number of hardware threads is recommended.
  367. # type:uint32
  368. io_threads = 4
  369.  
  370. # Amount of memory (MB) to build up before flushing to disk for an individual column family. Large values increase performance. 64 or 128 is recommended.
  371. # type:uint32
  372. memtable_size = 32
  373.  
  374. # Number of memtables to keep in memory per column family. 2 is the minimum, 3 is recommended.
  375. # type:uint32
  376. num_memtables = 2
  377.  
  378. # Total memory (MB) which can be used across all memtables, set to 0 for unconstrained.
  379. # type:uint32
  380. total_memtable_size = 512
  381.  
  382. [node.statistics.log]
  383.  
  384. # Log file name for counters.
  385. # type:string
  386. #filename_counters = "counters.stat"
  387.  
  388. # Log file name for samples.
  389. # type:string
  390. #filename_samples = "samples.stat"
  391.  
  392. # If true, write headers on each counter or samples writeout.
  393. # The header contains log type and the current wall time.
  394. # type:bool
  395. #headers = true
  396.  
  397. # How often to log counters. 0 disables logging.
  398. # type:milliseconds
  399. #interval_counters = 0
  400.  
  401. # How often to log samples. 0 disables logging.
  402. # type:milliseconds
  403. #interval_samples = 0
  404.  
  405. # Maximum number of log outputs before rotating the file.
  406. # type:uint64
  407. #rotation_count = 100
  408.  
  409. [node.statistics.sampling]
  410.  
  411. # How many sample intervals to keep in the ring buffer.
  412. # type:uint64
  413. #capacity = 0
  414.  
  415. # Enable or disable sampling.
  416. # type:bool
  417. #enable = false
  418.  
  419. # Sample interval.
  420. # type:milliseconds
  421. #interval = 0
  422.  
  423. [node.websocket]
  424.  
  425. # WebSocket server bind address.
  426. # type:string,ip
  427. #address = "::1"
  428.  
  429. # Enable or disable WebSocket server.
  430. # type:bool
  431. #enable = false
  432.  
  433. # WebSocket server listening port.
  434. # type:uint16
  435. #port = 9078
  436.  
  437. [opencl]
  438.  
  439. # OpenCL device identifier
  440. #device = 0
  441.  
  442. # Enable or disable OpenCL work generation
  443. # type:bool
  444. enable = false
  445.  
  446. # OpenCL platform identifier
  447. #platform = 0
  448.  
  449. # OpenCL thread count
  450. #threads = 1048576
  451.  
  452. [rpc]
  453.  
  454. # Enable or disable RPC
  455. # type:bool
  456. enable = true
  457.  
  458. # Allow or disallow signing of hashes.
  459. # type:bool
  460. enable_sign_hash = false
  461.  
  462. [rpc.child_process]
  463.  
  464. # Enable or disable RPC child process. If false, an in-process RPC server is used.
  465. # type:bool
  466. enable = false
  467.  
  468. # Path to the nano_rpc executable. Must be set if child process is enabled.
  469. # type:string,path
  470. rpc_path = "/root/Node/btcb_rpc"
Add Comment
Please, Sign In to add comment