VDS币常见问题 > VDS超级节点
+

VDS超级节点配置参数(vds.conf)配置详解

2019/4/10    作者:官方    来源:互联网    阅读:1814

VDS超级节点搭建过程中遇到好多问题。研究程序从配置项开始,翻译了一部分,有时间再继续翻译。

##

## vds.conf configuration file. Lines beginning with # are comments.

##

# Network-related settings:

# Run on the test network instead of the real vds network.

# 在测试网络上运行而不是在现网上运行。保持默认即可。

#testnet=0

# Run a regression test network  运行回归测试网络。不知道是什么鬼,超节的话不需要修改这个值,保持默认吧。

#regtest=0

# Connect via a SOCKS5 proxy 通过socks5代理接入。通过代理上网的可以打开这个配置项。

#proxy=127.0.0.1:9050

# Bind to given address and always listen on it. Use [host]:port notation for IPv6

# 绑定并监听指定的地址。ipv6网络使用[主机ip]:端口表示法。

#bind=<addr>

# Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6

# 绑定到指定地址并且白名单节点连接到该地址。ipv6网络使用[主机ip]:端口表示法。

#whitebind=<addr>

##############################################################

##            Quick Primer on addnode vs connect            ## addnode 和 connect快速入门

##  Let's say for instance you use addnode=4.2.2.4          ## 假设你使用addnode=4.2.2.4,以此为例。

##  addnode will connect you to and tell you about the      ## addnode会将你连接到4.2.2.4并告诉你所有连接到4.2.2.4的节点。

##    nodes connected to 4.2.2.4.  In addition it will tell ## 此外它会告诉其他节点4.2.2.4这个地址是存在的,以便他们就可以连接到你。

##    the other nodes connected to it that you exist so    ##

##    they can connect to you.                              ##

##  connect will not do the above when you 'connect' to it. ## connect 命令在你执行‘connect’操作前不会做上述动作。它仅仅连接你到4.2.2.4不会连接其他。

##    It will *only* connect you to 4.2.2.4 and no one else.##

##                                                          ##

##  So if you're behind a firewall, or have other problems  ## 因此如果你在防火墙后面或因其他困难找不到节点的话,试试addnode命令吧。

##  finding nodes, add some using 'addnode'.                ## (国内无法连接绝大多数国外节点)

##                                                          ##

##  If you want to stay private, use 'connect' to only      ## 如果你想保持私密性,使用connect来连接你只信任的节点。

##  connect to "trusted" nodes.                            ##

##                                                          ##

##  If you run multiple nodes on a LAN, there's no need for ## 如果你在局域网中运行了多个节点,那就不需要所有的节点都打开大量的连接。

##  all of them to open lots of connections.  Instead      ##

##  'connect' them all to one node that is port forwarded  ## 相反,将它们“连接”到一个节点上,该节点是端口转发的,具有大量连接。

##  and has lots of connections.                            ##

##      Thanks goes to [Noodle] on Freenode.              ## 感谢去Noodle网站上获取免费的节点吧

##############################################################

# Use as many addnode= settings as you like to connect to specific peers

# 使用多个 addnode= 设置来连接到指定的对等节点。

#addnode=69.164.218.197

#addnode=10.0.0.2:8233

addnode=139.9.244.182

addnode=183.71.0.34

# Alternatively use as many connect= settings as you like to connect ONLY to specific peers

# 或者使用任意多的connect=settings只连接到特定的对等端。 (connect只连接信任的节点)

#connect=69.164.218.197

#connect=10.0.0.1:8233

# Listening mode, enabled by default except when 'connect' is being used

# 监听模式,默认启用,如果connect启用了,则自动禁用该模式。

#listen=1

# Maximum number of inbound+outbound connections.

# 连入+连出节点最大值。(这里建议不配置,由系统调度吧。配置少了收益少,配置大了机器可能拖不动。)

#maxconnections=

#

# JSON-RPC options (for controlling a running Vds/vdsd process)

# json-rpc选项(用于控制正在运行的vds/vdsd进程)

#

#

# server=1 tells vdsd to accept JSON-RPC commands (set as default if not specified)

# server=1通知vdsd接受json-rpc命令(如果未指定,则设置为默认值)

#server=1

# Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6.

# 绑定到给定地址以侦听JSON-RPC连接。使用[主机]:IPv6的端口表示法。

# This option can be specified multiple times (default: bind to all interfaces)

# 可以多次指定此选项(默认:绑定到所有接口)

#rpcbind=<addr>

# You must set rpcuser and rpcpassword to secure the JSON-RPC api

# 必须设置rpcuser和rpcpassword以保护json-rpc API

#rpcuser=Ulysses

# 注意启用后密码改成你自己的密码。

#rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593

# How many seconds vds will wait for a complete RPC HTTP request.

# after the HTTP connection is established.

# 建立HTTP连接后,VDS将等待完整的RPC HTTP请求的秒数。

#rpcclienttimeout=30

# By default, only RPC connections from localhost are allowed.

# Specify as many rpcallowip= settings as you like to allow connections from other hosts,

# either as a single IPv4/IPv6 or with a subnet specification.

# NOTE: opening up the RPC port to hosts outside your local trusted network is NOT RECOMMENDED,

# because the rpcpassword is transmitted over the network unencrypted and also because anyone

# that can authenticate on the RPC port can steal your keys + take over the account running vdsd

# For more information see https://github.com/vds/vds/issues/1497

#rpcallowip=10.1.1.34/255.255.255.0

#rpcallowip=1.2.3.4/24

#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96

# Listen for RPC connections on this TCP port:

#rpcport=8232

# You can use Vds or vdsd to send commands to Vds/vdsd

# running on another host using this option:

#rpcconnect=127.0.0.1

# Transaction Fee

# Send transactions as zero-fee transactions if possible (default: 0)

#sendfreetransactions=0

# Create transactions that have enough fees (or priority) so they are likely to # begin confirmation within n blocks (default: 1).

# This setting is overridden by the -paytxfee option.

#txconfirmtarget=n

# Miscellaneous options

# Enable attempt to mine vds.

#gen=0

# Set the number of threads to be used for mining vds (-1 = all cores).

#genproclimit=1

# Pre-generate this many public/private key pairs, so wallet backups will be valid for

# both prior transactions and several dozen future transactions.

#keypool=100

# Pay an optional transaction fee every time you send vds.  Transactions with fees

# are more likely than free transactions to be included in generated blocks, so may

# be validated sooner. This setting does not affect private transactions created with

# 'z_sendmany'.

#paytxfee=0.00

seednode=95.183.55.251

seednode=27.102.113.133

seednode=46.28.207.161

seednode=109.236.86.26

seednode=23.106.215.127

seednode=103.78.133.59

seednode=23.106.215.132

seednode=103.108.236.125

seednode=103.78.133.65




作者:vollar
链接:https://www.jianshu.com/p/0f90a7dcbbd2

  • 相关文章
  • 热门文章

【电脑版】  【回到顶部】