Blockchain 无法在本地以太坊区块链中添加对等方

Blockchain 无法在本地以太坊区块链中添加对等方,blockchain,ethereum,Blockchain,Ethereum,我正在尝试将一个节点添加到本地以太坊,我正在使用以下设备运行第一个节点: geth --port 30303 --networkid 1234 --nodiscover --datadir ethereum/paradox --rpc --rpcport 8545 --rpccorsdomain "http://localhost:8000" --allow-insecure-unlock --ethstats paradox:s3cr3t@localhost:3000

我正在尝试将一个节点添加到本地以太坊,我正在使用以下设备运行第一个节点:

geth --port 30303 --networkid 1234 --nodiscover --datadir ethereum/paradox  --rpc --rpcport 8545  --rpccorsdomain "http://localhost:8000"  --allow-insecure-unlock --ethstats paradox:s3cr3t@localhost:3000  --rpcapi "eth,net,web3,personal,miner"
  geth --datadir "$ethereum_home/sample" --nodiscover --networkid 1234 --port 30304
以及我的第二个节点:

geth --port 30303 --networkid 1234 --nodiscover --datadir ethereum/paradox  --rpc --rpcport 8545  --rpccorsdomain "http://localhost:8000"  --allow-insecure-unlock --ethstats paradox:s3cr3t@localhost:3000  --rpcapi "eth,net,web3,personal,miner"
  geth --datadir "$ethereum_home/sample" --nodiscover --networkid 1234 --port 30304
它们都指向同一个创世纪区块

当我运行命令“addPeers”时,itt返回true,但当我运行“admin.peer”时,它不显示对等点

我的创世纪档案:
{“config”:{“chainId”:4224,“homesteadBlock”:0,“eip150Block”:0,“eip150Hash”:“0x0000000000000000000000000000000000000000000000”,“eip155Block”:0,“eip158Block”:0,“拜占庭帝国”:0,“君士坦丁堡”:0,“彼得堡帝国”:0,“伊斯坦布尔”:0,“ethash”:{},“nonce”:“0x0”,“时间戳”:“0x5f350017”,“外部数据”:“0x0000000000000000000000000000000000000000000000000000”,“气体限制”:“0x47b760”,“难度”:“0x80000”,“混合哈希”:“0x0000000000000000000000000000000000”,“coinbase”:“0x0000000000000000000000000000”,“alloc”:{“余额”:“0x1”},”00000000000000000000000000000000000000000000 FF:{“余额”:“0x1”}},“数字”:“0x0”,“使用的气体”:“0x0”,“父哈希”:“0x0000000000000000000000000000000000”}


有趣的是,当我停止这两个节点并重新启动,然后执行“addPeers”“它显示对等阵列中的其他节点,但仅显示一秒钟,如果我运行命令admin.peer,它将显示nothing。

一个节点的端口30305在您的行中运行,另一个节点的端口30303在您的行中运行。”。为什么尝试使用端口30304添加Peer?运行geth实例时,检查命令行上列出的端口的可用性。并正确检查节点键和端口。

否实际上我有多个节点正在运行,当我连接端口30305上运行的实例时,屏幕截图就是这样的。我也尝试了端口30304,但仍然没有结果。