【问题标题】:geth --rinkeby can not find peersgeth --rinkeby 找不到同行
【发布时间】:2020-08-05 05:11:04
【问题描述】:

我想运行一个 Rinkeby 完整节点。这是我的 geth 启动脚本:

geth    --rinkeby \
        --cache=2048 \
        --http --http.port=8545 --http.addr=127.0.0.1 --http.api=eth,web3,net,personal --http.corsdomain "*" \
        --syncmode=fast

geth 启动,但显然它无法连接到任何对等点。我得到以下调试输出:

INFO [08-05|07:03:02.696] Looking for peers                        peercount=0 tried=137 static=0
INFO [08-05|07:03:12.832] Looking for peers                        peercount=0 tried=180 static=0
INFO [08-05|07:03:23.506] Looking for peers                        peercount=0 tried=81  static=0
INFO [08-05|07:03:35.003] Looking for peers                        peercount=0 tried=198 static=0
INFO [08-05|07:03:45.042] Looking for peers                        peercount=0 tried=105 static=0
INFO [08-05|07:03:56.216] Looking for peers                        peercount=0 tried=96  static=0
INFO [08-05|07:04:06.978] Looking for peers                        peercount=0 tried=118 static=0
INFO [08-05|07:04:17.244] Looking for peers                        peercount=0 tried=110 static=0
INFO [08-05|07:04:27.273] Looking for peers                        peercount=0 tried=189 static=0
INFO [08-05|07:04:39.046] Looking for peers                        peercount=0 tried=81  static=0

它已经像这样运行了超过 12 个小时。我也尝试停止防火墙,但这并没有改变任何东西。

这里是geth版本的输出:

Geth
Version: 1.9.19-unstable
Git Commit: 8e7bee9b56763e94c06e597bf968838e7ea2d03b
Git Commit Date: 20200727
Architecture: amd64
Protocol Versions: [65 64 63]
Go Version: go1.13.14
Operating System: linux
GOPATH=
GOROOT=/usr/lib64/go/1.13

我能做什么,geth 找到其他同伴?

感谢您的帮助。

【问题讨论】:

    标签: geth


    【解决方案1】:

    如果您更新到最新的稳定版本 1.10.x 并且仍然遇到发现问题。尝试使用启用实验性RLPx V5(主题发现)机制的--v5disc 选项运行节点。

    编辑

    此外,发现端口设置不正确30303 可能会导致节点无法找到对等点。 确保在该端口上尝试侦听的进程不超过一个。

    【讨论】:

      【解决方案2】:

      嗯,你的 geth 版本不稳定。尝试安装最新的稳定版本。这应该可以解决问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-04-24
        • 2018-05-15
        • 1970-01-01
        • 2022-11-12
        • 1970-01-01
        • 2018-06-19
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多