# Quicksilver — 测试网验证节点教程

By [NodeStake](https://paragraph.com/@nodestake) · 2022-05-10

---

![](https://storage.googleapis.com/papyrus_images/bc2916289c6657e70e7da94ddb9b72727aa56703b7c7dee30c554fb9f3ea1c72.jpg)

系统要求：
-----

*   Ubuntu 18.04+ (推荐20.04+)
    
*   8GB RAM, 4v CPU
    
*   200 GB SSD
    

**1\. 安装基础环境**

    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.6.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
    EOFsource $HOME/.profile
    go version
    

**2\. 编译**quicksilverd**执行文件**

    cd $HOME
    git clone https://github.com/ingenuity-build/quicksilver.git --branch v0.1.10
    cd quicksilver
    make install
    quicksilverd version
    

**3\. 初始化**

    cd $HOME
    quicksilverd init YourMonikerName --chain-id quicktest-3
    

**4\. 下载genesis.json**

    cp $HOME
    wget https://raw.githubusercontent.com/ingenuity-build/testnets/main/rhapsody/genesis.json
    rm $HOME/.quicksilverd/config/genesis.json
    cp genesis.json $HOME/.quicksilverd/config/genesis.json
    

**5\. 配置seed和peer**

    seeds="dd3460ec11f78b4a7c4336f22a356fe00805ab64@seed.quicktest-1.quicksilver.zone:26656"
    
    sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/; s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.quicksilverd/config/config.toml
    

**6\. 添加钱包，将地址和生成的助记词记下**

    quicksilverd keys add mykey
    

**7\. 启动节点，等待链开始运行 ，保持程序24小时运行**

    quicksilverd start
    

或者使用systemctl让quicksilverd让后台运行

    sudo tee /etc/systemd/system/quicksilverd.service > /dev/null <<EOF
    [Unit]
    Description=quicksilverd Daemon
    After=network-online.target
    [Service]
    User=$USER
    ExecStart=$(which quicksilverd) start
    Restart=always
    RestartSec=3
    LimitNOFILE=65535
    [Install]
    WantedBy=multi-user.target
    EOF
    
    sudo systemctl daemon-reload
    sudo systemctl enable quicksilverd
    sudo systemctl restart quicksilverd
    
    journalctl -u quicksilverd -f
    

8.(可选，推荐)使用Stake Sync快速同步

    SNAP_RPC="http://node02.quicktest-1.quicksilver.zone:26657"
    SNAP_RPC1="http://node03.quicktest-1.quicksilver.zone:26657"
    LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
    BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
    TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
    echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
    
    sudo systemctl stop quicksilverd
    quicksilverd unsafe-reset-all
    
    sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
    s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC1\"| ; \
    s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
    s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
    s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.quicksilverd/config/config.toml
    more ~/.quicksilverd/config/config.toml | grep 'rpc_servers'
    more ~/.quicksilverd/config/config.toml | grep 'trust_height'
    more ~/.quicksilverd/config/config.toml | grep 'trust_hash'sudo systemctl restart quicksilverd
    
    journalctl -u quicksilverd -f -o cat
    

9\. 检查区块同步高度

    curl -s localhost:26657/status | jq .result | jq .sync_info
    

等待区块完全同步后进行下一步

**10\. 创建验证者**

a. 领取测试币

1.  加入项目Discord [https://discord.gg/Xsx39EPeHg](https://discord.gg/Xsx39EPeHg)
    
2.  进入#qck-tap
    
3.  $request _YourWalletAddress_ rhapsody
    

b. 创建验证者

    quicksilverd tx staking create-validator \
    --amount=1000000uqck \
    --pubkey=$(quicksilverd tendermint show-validator) \
    --chain-id=quicktest-3 \
    --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"
    

Explorer: [https://quicksilver.explorers.guru/validators](https://quicksilver.explorers.guru/validators)

Quicksilver Protocol:
---------------------

Website：[https://quicksilver.zone/](https://quicksilver.zone/)

Twitter：[https://twitter.com/quicksilverzone](https://twitter.com/quicksilverzone)

Discord：[https://discord.gg/Xsx39EPeHg](https://discord.gg/Xsx39EPeHg)

* * *

关注推特[@NodeStake\_top](https://twitter.com/Nodestake_top)，获取更多资讯

---

*Originally published on [NodeStake](https://paragraph.com/@nodestake/quicksilver)*
