首先是配置问题:
如果是节点,那么可以使用2h4g的配置。
环境:
操作环境主要需要一台1000M路由器。如果太低,可能会导致农场不稳定。
method:
首先,在启动节点时,添加以下参数:
--rpc-port 9944
--rpc-max-connections <COUNT>
--rpc-methods unsafe
--rpc-external
--rpc-cors all
--no-private-ipv4
其中,rpc-port 表示默认端口。如果你有公共IP,我建议你改变它。–rpc-max-connections 表示连接数。如果你有很多农场,我建议你增加它。
以下是我的节点启动参数,就像这样启用外部访问:
windows:
.\Autonomys-node-windows-x86_64-skylake-gemini-3f-2023-sep-05.exe `
--chain gemini-3f `
--execution wasm `
--blocks-pruning 256 `
--state-pruning archive `
--validator `
--name "node" `
--in-peers 200 `
--out-peers 200 `
--rpc-max-connections 2000 `
--rpc-methods unsafe `
--rpc-external `
--rpc-cors all `
--no-private-ipv4 `
--rpc-port 9944
Linux操作系统:
./Autonomys-node-ubuntu-x86_64-skylake-gemini-3f-2023-sep-11 \
--chain gemini-3f \
--execution wasm \
--blocks-pruning 256 \
--state-pruning archive \
--validator \
--name "node" \
--in-peers 100 \
--out-peers 100 \
--rpc-methods unsafe \
--rpc-external \
--rpc-cors all \
--no-private-ipv4 \
--rpc-port 9944
在此之后,您的节点应该可以从外部访问,包括您的 LAN
随后如何进入农场?你只需要添加以下参数
–node-rpc-url=ws://192.168.1.1:9944
你需要将 IP 地址替换为自己的 IP 地址,
示范:
.\Autonomys-farmer-windows-x86_64-skylake-gemini-3f-2023-sep-05.exe farm --reward-address st**************** --node-rpc-url =ws://192.168.1.1:9944 path=P:\1,size=1.75TB
记得用你自己的钱包地址替换 st******************
确保您的网络环境没有问题,然后运行它就不会有问题,并且在运行大约半小时后将开始绘制。