Rpc/Grpc节点搭建工具
RPCGrpc
推荐节点配置:AMD EPYC 9354 3.25GHz (32 cores)/512Gb/2x3.84Tb U2 NVMe SSD/PSU 200TB流量
推荐使用solv:https://solv.epics.dev/en/doc/general/getting-started/
辅助追块工具:https://github.com/c29r3/solana-snapshot-finder
具体什么样子的服务器可以跑节点参考网站:https://solanahcl.org/
start-validator.sh
#!/bin/bash
exec agave-validator \
--identity /home/solv/identity.json \
--log /home/solv/solana-validator.log \
--accounts /mnt/accounts \
--ledger /mnt/ledger \
--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 \
--known-validator Certusm1sa411sMpV9FPqU5dXAYhmmhygvxJ23S6hJ24 \
--known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \
--known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \
--known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \
--expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \
--expected-shred-version 50093 \
--only-known-rpc \
--full-rpc-api \
--no-voting \
--private-rpc \
--enable-cpi-and-log-storage \
--no-skip-initial-accounts-db-clean \
--dynamic-port-range 8000-8020 \
--rpc-bind-address 0.0.0.0 \
--rpc-port 8899 \
--no-port-check \
--account-index program-id spl-token-mint spl-token-owner \
--enable-rpc-transaction-history \
--rpc-pubsub-enable-block-subscription \
--rpc-pubsub-enable-vote-subscription \
--no-wait-for-vote-to-start-leader \
--account-index-include-key AddressLookupTab1e1111111111111111111111111 \
--wal-recovery-mode skip_any_corrupted_record \
--use-snapshot-archives-at-startup when-newest \
--limit-ledger-size 50000000 \
--geyser-plugin-config /home/solv/yellowstone-grpc/yellowstone-grpc-geyser/config.json \
yellowstone-config.json
追块工具安装
快照下载命令(2.1.16)
节点更换版本
Last updated