我正在尝试创建一个私有的each网络,因此我需要在不同的端口上运行每个节点。但是,当我分配一个新的端口号时,它不会接受端口号。它使用默认的转接端口号。
bootnode -nodekey “./boot.key” -verbosity 7 -addr “127.0.0.1:30301”geth --networkid 20213 --datadir "./data" --bootnodes enode://b31db920ae792d67396bc195a7aa5c1ba685cfcb9e3fd4a3c77e7c63542d3f2e3196f2878c35bb3951e409fefcb7183d22b946250012209f55e6bce5a19a2575@127.0.0.1:0?discport=30301 --port 30304 --ipcdisable --syncmode full --http --allow-insecure-unlock --http.corsdomain "*" --http.port 8546 --unlock 0x1358679CAFE2b9f0Defc1714B317097E8CB9F4B1 --password password.txt --mine console在上面的命令完成后,您可以看到我的控制台的几行代码。http服务器是在另一个端口上启动的,但当身份验证失败时,它切换到默认端口。

geth --networkid 20213 --datadir "./data" --bootnodes enode://b31db920ae792d67396bc195a7aa5c1ba685cfcb9e3fd4a3c77e7c63542d3f2e3196f2878c35bb3951e409fefcb7183d22b946250012209f55e6bce5a19a2575@127.0.0.1:0?discport=30301 --port 30306 --ipcdisable --syncmode full --http --allow-insecure-unlock --http.corsdomain "*" --http.port 8547 --unlock 0xC53637b4af259F6A93f279A576F3Fa63CCDEA69f --password password.txt console发布于 2022-12-06 14:59:59
您的node2文件夹需要更改为
geth --networkid 20213 --datadir "./data2" --bootnodes enode://b31db920ae792d67396bc195a7aa5c1ba685cfcb9e3fd4a3c77e7c63542d3f2e3196f2878c35bb3951e409fefcb7183d22b946250012209f55e6bce5a19a2575@127.0.0.1:0?discport=30301 --port 30307 --ipcdisable --syncmode full --http --allow-insecure-unlock --http.corsdomain "*" --http.port 8547 --authrpc.port 8552 --unlock PUT_A_NEW_ACCOUNT_INTO_NODE2 --password password.txt consolehttps://ethereum.stackexchange.com/questions/133426
复制相似问题