1

问题

我想创建一个私有以太坊网络,但是我的两个同行拒绝连接。他们总是失败并出现以下错误:Snapshot extension registration failed peer=af5dfeb7 err="peer connected on snap without compatible eth support".

我尝试的修复

  • 设置--snapshot=false产生相同的错误
  • 将其更改--syncmode为全速、快速或轻量没有任何区别
  • 手动添加对等点admin.addPeer(${peer1.admin.nodeInfo.enode})返回 true,但是net.peerCountadmin.peers.length返回0
  • 更改chainId 没有产生任何不同的结果
  • 等待没有帮助

我的设置过程

创建对等点:
geth init --datadir "peer1" genesis.json
geth init --datadir "peer2" genesis.json
启动对等点并打开控制台:
geth --datadir "peer1" --networkid 1111 --port 30401 console 2>peer1.log
geth --datadir "peer2" --networkid 1111 --port 30402 console 2>peer2.log
创世文件(创建者puppeth
{
  "config": {
    "chainId": 1111,
    "homesteadBlock": 0,
    "eip150Block": 0,
    "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "eip155Block": 0,
    "eip158Block": 0,
    "byzantiumBlock": 0,
    "constantinopleBlock": 0,
    "petersburgBlock": 0,
    "istanbulBlock": 0,
    "ethash": {}
  },
  "nonce": "0x0",
  "timestamp": "0x61af5dd9",
  "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "gasLimit": "0x47b760",
  "difficulty": "0x1",
  "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "coinbase": "0x0000000000000000000000000000000000000000",
  "alloc": {},
  "number": "0x0",
  "gasUsed": "0x0",
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "baseFeePerGas": null
}

Geth 版本信息
Geth
Version: 1.10.13-stable
Git Commit: 7a0c19f813e285516f4b525305fd73b625d2dec8
Architecture: amd64
Go Version: go1.17.2
Operating System: linux
GOPATH=
GOROOT=go
4

0 回答 0