在部署solana验证节点时,创世区块错误

我的启动脚本如下:

#!/bin/bash
exec solana-validator \
    --identity ~/validator-keypair.json \
    --known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \
    --known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \
    --known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ \
    --known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \
    --only-known-rpc \
    --full-rpc-api \
    --no-voting \
    --ledger /mnt/ledger \
    --accounts /mnt/accounts \
    --log /home/sol/solana-rpc.log \
    --rpc-port 8899 \
    --rpc-bind-address 0.0.0.0 \
    --private-rpc \
    --dynamic-port-range 8000-8020 \
        --entrypoint entrypoint.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint2.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint3.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint4.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint5.mainnet-beta.solana.com:8001 \
    --expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \
    --wal-recovery-mode skip_any_corrupted_record \
    --limit-ledger-size

在我使用systemcrtl status sol时报错信息如下

 systemctl status sol
* sol.service - Solana Validator
     Loaded: loaded (/etc/systemd/system/sol.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2024-05-11 11:00:23 CDT; 43s ago
   Main PID: 25430 (solana-validato)
      Tasks: 100 (limit: 618831)
     Memory: 1.8G
     CGroup: /system.slice/sol.service
             `-25430 solana-validator --identity /root/validator-keypair.json --known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 --known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ --known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu7>

May 11 11:01:06 free solana-validator.sh[25430]: [2024-05-11T16:01:06.102087153Z WARN  solana_validator::bootstrap] Genesis hash mismatch: expected 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d but downloaded genesis hash is 4uhcVJyU9pJkvQyS88uRDiswHXSCkY>
May 11 11:01:06 free solana-validator.sh[25430]: [2024-05-11T16:01:06.106481681Z WARN  solana_validator::bootstrap] Genesis hash mismatch: expected 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d but downloaded genesis hash is 4uhcVJyU9pJkvQyS88uRDiswHXSCkY>
May 11 11:01:06 free solana-validator.sh[25430]: [2024-05-11T16:01:06.109613062Z WARN  solana_validator::bootstrap] Genesis hash mismatch: expected 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d but downloaded genesis hash is 4uhcVJyU9pJkvQyS88uRDiswHXSCkY>

其中总是说我的创世区块有错 Genesis hash mismatch: expected 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d but downloaded genesis hash is 4uhcVJyU9pJkvQyS88uRDiswHXSCkY>

我明明设置了 --expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d

请先 登录 后评论

1 个回答

Wade - Footprint Analytics CTO
  擅长:数据分析,GameFi,NFT
请先 登录 后评论
  • 1 关注
  • 0 收藏,989 浏览
  • Jzq 提出于 2024-05-12 00:18