0

我正在关注创建您的专用网络教程。我在本地机器上有一个正在运行的引导节点,我希望来自 AWS 的新参与者加入我的网络。但不知何故,我不断得到0 peers

我添加了日志RUST_LOG=debug并发现了这一点:

2021-08-04 02:06:40.563 DEBUG tokio-runtime-worker libp2p_dns: Dialing /ip4/130.105.xxx.xxx/tcp/30333/p2p/12D3KooxxxNr    
2021-08-04 02:06:40.563 DEBUG tokio-runtime-worker libp2p_tcp: dialing 130.105.xxx.xxx:30333    
2021-08-04 02:06:40.563 DEBUG tokio-runtime-worker libp2p_swarm: Connection attempt to PeerId("12D3KooxxxNr") via "/ip4/130.105.xxx.xxx/tcp/30333/p2p/12D3KooxxxNr" failed with Transport(Other(Custom { kind: Other, error: Timeout })). Attempts remaining: 2.    
2021-08-04 02:06:40.563 DEBUG tokio-runtime-worker libp2p_kad::behaviour: Last remaining address '/ip4/130.105.xxx.xxx/tcp/30333/p2p/12D3KooxxxNr' of peer '12D3KooxxxNr' is unreachable: Pending connection: Transport error: Timeout has been reached.

我在某处读到它,连接需要5 分钟。如何增加超时时间?

4

1 回答 1

3

我认为您的本地计算机没有公共 IP 地址。

我建议您将 AWS 设置为引导节点,然后从本地计算机连接。

于 2021-08-04T02:29:45.727 回答