# Archway - 搭建测试网验证节点 **Published by:** [NodeStake](https://paragraph.com/@nodestake/) **Published on:** 2022-04-11 **URL:** https://paragraph.com/@nodestake/archway ## Content Gentx 提交开始时间 —April 11, 2022 12:00pm UTC Gentx 提交截止时间 — April 12, 2022 12:00pm UTC 测试网启动时间 — April 13, 2022 3:00pm UTC (预估) 官方文档:https://philabs.notion.site/Validator-Setup-Guide-10502472842e4ad8bf7fb7ec68afe07a系统要求:Ubuntu 18.04+ (推荐20.04+)4 GB RAM, x64 2.0 GHz 2v CPU512 GB SSD1. 安装基础环境sudo su sudo apt-get install git curl build-essential make jq gcc snapd chrony -y 安装Go 17+cd ~ curl https://dl.google.com/go/go1.17.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf - cat <<'EOF' >>$HOME/.profile export GOROOT=/usr/local/go export GOPATH=$HOME/go export GO111MODULE=on export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin EOF source $HOME/.profile go version 2. 编译Archway执行文件git clone https://github.com/archway-network/archway cd archway git checkout main make install archwayd version 3. 配置你的验证者 (Gentx 的提交开始时间是April 11, 2022 at 12pm UTC,截止时间 是April 12, 2022 12:00pm UTC)cd $HOME archwayd init YourMonikerName --chain-id torii-1 wget https://raw.githubusercontent.com/archway-network/testnets/main/torii-1/penultimate_genesis.json cp penultimate_genesis.json $HOME/.archway/config/genesis.json 4. 添加钱包,将地址和生成的助记词记下archwayd keys add mykey 5(创世块之前,创世块之后跳过此步). 将钱包添加到genesis里archwayd add-genesis-account $(archwayd keys show mykey -a) 1001000utorii 6(创世块之前,创世块之后跳过此步). 将你的验证者添加到genesis里,生成gentx-xxxx.jsonarchwayd gentx mykey 1000000utorii \ --commission-rate 0.10 \ --commission-max-rate 0.20 \ --commission-max-change-rate 0.01 \ --pubkey $(archwayd tendermint show-validator) \ --chain-id torii-1 \ --moniker="YourMonikerName" 看到类似的文件Genesis transaction written to "/root/.archway/config/gentx/gentx-e30b6f9861eb6816a27c2dbc804b371ab5002d3a.json" 则表示Gentx.json文件生成成功。 7(创世块之前,创世块之后跳过此步). 提交Gentx PR到 archway-network/testnets 等待合并,该测试网将随机选取125名提交者 方法A:网页端提交PR:步骤1:拷贝gentx-*.json的内容 cat /root/.archway/config/gentx/gentx-* 拷贝输出的内容 步骤2: 打开https://github.com/archway-network/testnets 点击右上角Fork 步骤3: 在你Github页面下.../archway-network/testnets/tree/main/torii-1/gentx/页面下新建文件gentx-YOUR-VALIDATOR-NAME.json ,将步骤1的内容粘贴进去,保存 步骤4: 返回到你Github页面../archway-network/testnets 选择Contribute,Open pull request,直到提交成功。 步骤5: https://github.com/archway-network/testnets/pulls 在此页面可以看到你的PR 方法B:命令端提交PR。先自行Google下吧,遇到出错可以到群里提问。 提交Google表格进行登记 Google表格最后一步Paste ID JSON方法(https://github.com/archway-network/testnet-signer)cd $HOME git clone https://github.com/archway-network/testnet-signer.git cd testnet-signer make install testnet-signer keys add testnet_signer_key testnet-signer sign_id testnet_signer_key 再按要求填写 #到此,任务一:Run a Genesis Validator就完成了。 8. Gentx被合并后,请下载最新的genesis.jsoncp $HOME rm -rf testnets git clone https://github.com/archway-network/testnets cp $HOME/testnets/torii/genesis.json $HOME/.archway/config/genesis.json peers="dcc82542a94ab6407733802dd50c098da6f27f72@35.184.247.99:26656,2b6f374f60917e51675966e00064ce63e1842148@172.17.0.2:26656,a07831fd2d1ca9c23b68200f86265ec046258924@10.20.20.25:26656,61ac87ea39ba837e9b084fee7b9a1155ba694ace@51.79.102.125:26656,7bb8f139b9bec7049c1a0551d3f8b74cfe593ed2@141.95.104.249:26656,e770fec72913c3b97378032bc29facff0aae2284@141.95.109.53:26656,f1873d78587aeb1d6bcf06c5a4c371ab8805ab5e@51.83.248.28:26656,a76db0ded1c53d32d49e2974a9c5d258267a13b4@51.79.25.38:26657" sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.archway/config/config.toml 9. 启动节点,等待链开始运行 ,保持程序24小时运行 # 测试网启动时间 — April 13, 2022 3:00pm UTC (预计)archwayd start 10. 创建验证者 a. 将步骤4的钱包地址,到Discord #Faucet 领取测试币 b. 创建验证者archwayd tx staking create-validator \ --amount=1000000utorii \ --pubkey=$(archwayd tendermint show-validator) \ --chain-id=torii-1 \ --commission-rate="0.10" \ --commission-max-rate="0.20" \ --commission-max-change-rate="0.01" \ --min-self-delegation=1 \ --gas="auto" \ --from mykey \ --moniker="YourMonikerName" 记下创建成功后的Hash,提交Google表格进行登记 此测试网教程将陆续更新 加入Archway官方Discord 关注推特@NodeStake_top Website:https://www.archway.io/ Twitter:https://twitter.com/archwayhq GitHub:https://github.com/archway-network Discord:https://discord.gg/FjkPR7X3cm ------------------------------- Follow NodeStake.top:https://twitter.com/Nodestake_top ## Publication Information - [NodeStake](https://paragraph.com/@nodestake/): Publication homepage - [All Posts](https://paragraph.com/@nodestake/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@nodestake): Subscribe to updates - [Twitter](https://twitter.com/Nodestake_top): Follow on Twitter