SN-0274 已核对来源,附原文与上下文。
有命令行选项:
There are command line options:
bitcoin -addnode=1.2.3.4 告诉 bitcoin 要连接的一个节点
bitcoin -addnode=1.2.3.4 to tell bitcoin about a node to connect to
bitcoin -connect=1.2.3.4 只连接指定节点
bitcoin -connect=1.2.3.4 connect only to the specified node(s)
这些选项可以叠加使用,比如
You can use more than one of these, for instance
bitcoin -connect=(先试这个) -connect=(下一个) ...
bitcoin -connect=(first to try) -connect=(next to try) ...
-connect 可以指定不可路由的 IP,比如 192.168.x.x,所以如果你有一个服务器集群,想让一台连接外部世界、其余都连到那一台,也能做到。
You can specify non-routable IPs with -connect like 192.168.x.x, so if you had a server farm and you wanted one server to connect to the world and the rest to connect to the one server, you could do that.
特别是,如果你打算一直通过 TOR 连接,就需要 -addnode,因为 IRC 服务器封禁所有 TOR 出口节点。通过 TOR 连接可以用:
In particular, -addnode is needed if you're always going to connect through TOR, since the IRC server blocks all the TOR exit nodes. To connect through TOR, you could use:
bitcoin -proxy=127.0.0.1:9050 -addnode=212.159.72.216
bitcoin -proxy=127.0.0.1:9050 -addnode=212.159.72.216