Validador Solana Testnet - Quickstart
Lançamento do & Validador de Instalação
bash
curl -fsSL https://storage.slv.dev/slv/install | sh
slv validator init
slv validator deploycurl -fsSL https://storage.slv.dev/slv/install | sh
slv validator init
slv validator deployImplantar o validador Firedancer da Solana Testnet
Pré-requisitos
Por favor prepare um servidor com o Ubuntu 24.04 LTS instalado de forma limpa.
Sobre o tratamento de chaves
Para novas implantações SLV Firedancer, unstaking-keypair.json é sempre usado como a chave de identidade inicialmente para segurança.
Esta é uma boa prática para evitar questões críticas, como a dupla votação.
DeFinição de identidade após a implantação
Após a implantação, certifique-se de definir a chave de identidade autorizada com o seguinte comando:
bash
slv v set:identity -n testnet --pubkey <name>slv v set:identity -n testnet --pubkey <name>Preparando um servidor Baremetal para Testnet
Embora seja possível executar nós da Solana em máquinas VPS ou virtuais (VM), alcançar um desempenho e estabilidade ideais é um desafio na prática. Solana recomenda oficialmente o uso de servidores baremetal, que oferecem desempenho muito maior do que ambientes virtualizados.
Uma vez que os ambientes testnet têm menor carga em comparação com mainnet, confirmamos operação estável usando servidores com 16 núcleos Ryzen CPU e 128GB DDR5 RAM. Usar esta configuração do servidor ajuda a reduzir os custos operacionais, por isso é recomendado.
Quando você executar o
slv v init comando, você será perguntado se seu servidor baremetal já está configurado:bash
➜ slv v init
? Select Solana Network (testnet) › testnet
? 🛡️ Do you have a Solana Node Compatible Server? (no)
❯ yes
no➜ slv v init
? Select Solana Network (testnet) › testnet
? 🛡️ Do you have a Solana Node Compatible Server? (no)
❯ yes
noEste tutorial assume que você seleciona
yes.Se ainda não preparou o seu servidor Guia de Configuração do Servidor Baremetal para completar a configuração.
Nome de usuário padrão do servidor de entrada
Na maioria das vezes, o nome de usuário padrão é
ubuntu ou root.bash
? What's the user for the server? (ubuntu) › ubuntu? What's the user for the server? (ubuntu) › ubuntuEndereço IP do servidor de entrada
Insira o endereço IP do servidor.
bash
? What's the IP address of the server? ›? What's the IP address of the server? ›DeFinir chave RSA para SSH
Por favor, defina o caminho para a sua chave RSA. O caminho padrão é
~/.ssh/id_rsa.
Atualmente, somente o caminho padrão é suportado, então, por favor, defina-o como está.bash
? What's the path to your RSA key? (~/.ssh/id_rsa) › ~/.ssh/id_rsa
🔍 Checking SSH connection...
✔︎ SSH connection succeeded? What's the path to your RSA key? (~/.ssh/id_rsa) › ~/.ssh/id_rsa
🔍 Checking SSH connection...
✔︎ SSH connection succeededEm seguida, SLV irá verificar a conexão com o servidor. Se a conexão for bem sucedida, o próximo passo será solicitado.
Selecione o Tipo de Validador Solana
Selecione o tipo de validador Solana.
bash
? Select Validator Type (firedancer-jito)
agave
jito
jito-bam
firedancer-agave
❯ firedancer-jito? Select Validator Type (firedancer-jito)
agave
jito
jito-bam
firedancer-agave
❯ firedancer-jitoGerar ou configurar a chave de identidade do validador Solana
Você pode gerar uma nova chave de identidade ou definir uma chave de identidade existente.
Este exemplo mostra como definir uma chave de identidade existente com o nome "epics-test".
bash
? Do you want to create a new identity key now? (Y/n) › No
? Please Enter Your Identity Public Key › TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp
? Enter Inventory Name (TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp) › epics-test
⚠️ Please place your identity key in
~/.slv/keys/TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp.json
.
.
✔︎ Success
✔ Inventory updated to ~/.slv/inventory.yml
✔ Successfully created solv user on x.x.x.x? Do you want to create a new identity key now? (Y/n) › No
? Please Enter Your Identity Public Key › TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp
? Enter Inventory Name (TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp) › epics-test
⚠️ Please place your identity key in
~/.slv/keys/TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp.json
.
.
✔︎ Success
✔ Inventory updated to ~/.slv/inventory.yml
✔ Successfully created solv user on x.x.x.xPor favor coloque sua chave de identidade em
~/.slv/keys/<your-pubkey>.json. Em seguida, SLV irá criar o solv usuário usando uma senha.Detecção Automática de Região
Em seguida, o sistema irá ping cada motor de bloco de seu nó configurado para detectar automaticamente a região mais próxima. Medindo os valores reais de ping, você pode selecionar a região ideal.
bash
📍 Measuring latencies from x.x.x.x to testnet regions...
Pinging Dallas (dallas.testnet.block-engine.jito.wtf)...
Pinging New York (ny.testnet.block-engine.jito.wtf)...
✅ New York: 74.341 ms
✅ Dallas: 114.722 ms
🎯 Nearest region: 🇺🇸 New York
Latency: 74.341 ms
Block Engine: https://ny.testnet.block-engine.jito.wtf
Shred Receiver: 64.130.35.224:1002
Relayer: http://ny.testnet.relayer.jito.wtf:8100
NTP Server: ntp.dallas.jito.wtf📍 Measuring latencies from x.x.x.x to testnet regions...
Pinging Dallas (dallas.testnet.block-engine.jito.wtf)...
Pinging New York (ny.testnet.block-engine.jito.wtf)...
✅ New York: 74.341 ms
✅ Dallas: 114.722 ms
🎯 Nearest region: 🇺🇸 New York
Latency: 74.341 ms
Block Engine: https://ny.testnet.block-engine.jito.wtf
Shred Receiver: 64.130.35.224:1002
Relayer: http://ny.testnet.relayer.jito.wtf:8100
NTP Server: ntp.dallas.jito.wtfGere ou defina a chave de votação do validador Solana
Você pode gerar uma nova chave de conta de votação ou definir uma chave de conta de voto existente.
Este exemplo mostra como definir uma chave de conta de votação existente.
bash
? Do you want to create a new vote account key now? (Y/n) › No
? Please Enter Your Vote Account Public Key > <your-vote-account>? Do you want to create a new vote account key now? (Y/n) › No
? Please Enter Your Vote Account Public Key > <your-vote-account>A configuração foi agora gravada para
~/.slv/inventory.testnet.validators.yml.Implantar o Validador
Assim que confirmar a configuração, a implantação começará.
bash
slv v deploy -n testnetslv v deploy -n testnetPrimeiro, a confirmação de configuração será exibida.
Selecione Sim para continuar.
bash
Your Testnet Validators Settings:
┌────────────────┬──────────────────────────────────────────────┐
│ Identity Key │ TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp │
├────────────────┼──────────────────────────────────────────────┤
│ Vote Key │ 6XdQ6szHJjm1t3XbgahSS6WVEhsrs5fniZbLgfkN1QWn │
├────────────────┼──────────────────────────────────────────────┤
│ Authority Key │ authAccount │
├────────────────┼──────────────────────────────────────────────┤
│ IP │ x.x.x.x. │
├────────────────┼──────────────────────────────────────────────┤
│ Validator Type │ jito │
├────────────────┼──────────────────────────────────────────────┤
│ Version │ 3.0.7-jito │
└────────────────┴──────────────────────────────────────────────┘
? Do you want to continue? (Y/n) › YesYour Testnet Validators Settings:
┌────────────────┬──────────────────────────────────────────────┐
│ Identity Key │ TKMNqvfwb7PKkc9KFEJJ8EaNK9s5XjNWgFS6oyqSLkp │
├────────────────┼──────────────────────────────────────────────┤
│ Vote Key │ 6XdQ6szHJjm1t3XbgahSS6WVEhsrs5fniZbLgfkN1QWn │
├────────────────┼──────────────────────────────────────────────┤
│ Authority Key │ authAccount │
├────────────────┼──────────────────────────────────────────────┤
│ IP │ x.x.x.x. │
├────────────────┼──────────────────────────────────────────────┤
│ Validator Type │ jito │
├────────────────┼──────────────────────────────────────────────┤
│ Version │ 3.0.7-jito │
└────────────────┴──────────────────────────────────────────────┘
? Do you want to continue? (Y/n) › YesEstá feito! O seu Validador Solana está agora implantado. Levará algum tempo para sincronizar com a rede Solana.
Depuração e Monitoramento
Após a implantação, você pode depurar e monitorar dentro do nó RPC Solana.
Você pode verificar o status do nó RPC Solana usando os seguintes comandos:
bash
$ solv m$ solv msolv é um apelido para agave-validator -l /mnt/ledger.
Esta configuração é adicionada a ~/.profile durante a implantação do nó RPC.Mudar a Chave de Identidade
Após a implantação, você precisa alterar a chave unstaking para a chave de identidade autorizada.
bash
slv v set:identity -n testnet --pubkey epics-testslv v set:identity -n testnet --pubkey epics-testEste comando irá definir a chave de identidade do seu computador local em:
~/.slv/keys/<name>.jsonReiniciar o Firedancer
Se você tiver algum problema com o validador, você pode reiniciar o wareancer com o seguinte comando.
A
--rm a opção irá parar o validador, remover o livro de registros e diretórios instantâneos, baixar um instantâneo usando o localizador de instantâneos, e então iniciar o validador.bash
slv v restart -n testnet --pubkey <name> --rmslv v restart -n testnet --pubkey <name> --rmComandos de Validação SLV
bash
slv validator --help
Usage: slv validator
Version: 0.9.700
Description:
🛠️ Manage Solana Validator Nodes 🛠️
Options:
-h, --help - Show this help.
Commands:
init - 🚀 Initialize a new validator configuration
deploy - 📦 Deploy Validators
list - 📋 List validators
set:identity - 🪪 Set Validator Identity
set:unstaked - 📴 Set Validator Identity to Unstaked Key
setup:firedancer - 🔥 Setup/Update Firedancer Validator
update:firedancer - 🔄 Update Firedancer Version
build:solana-cli - 🛠️ Build Solana CLI from Source
install:solana - ➡️ Install Solana CLI Binary
update:script - ⚙️ Update Validator Startup Config
update:jinja - 🧩 Update Jinja Template
start - 🟢 Start Validator
stop - 🔴 Stop Validator
restart - ♻️ Restart Validator
cleanup - 🧹 Cleanup Validator - Remove Ledger/Snapshot Unnecessary Files
get:snapshot - 💾 Download Snapshot with aria2c
gen:vote-account - 🗳️ Generate Vote Account
switch - 🔁 Switch Validator Identity - No DownTime Migrationslv validator --help
Usage: slv validator
Version: 0.9.700
Description:
🛠️ Manage Solana Validator Nodes 🛠️
Options:
-h, --help - Show this help.
Commands:
init - 🚀 Initialize a new validator configuration
deploy - 📦 Deploy Validators
list - 📋 List validators
set:identity - 🪪 Set Validator Identity
set:unstaked - 📴 Set Validator Identity to Unstaked Key
setup:firedancer - 🔥 Setup/Update Firedancer Validator
update:firedancer - 🔄 Update Firedancer Version
build:solana-cli - 🛠️ Build Solana CLI from Source
install:solana - ➡️ Install Solana CLI Binary
update:script - ⚙️ Update Validator Startup Config
update:jinja - 🧩 Update Jinja Template
start - 🟢 Start Validator
stop - 🔴 Stop Validator
restart - ♻️ Restart Validator
cleanup - 🧹 Cleanup Validator - Remove Ledger/Snapshot Unnecessary Files
get:snapshot - 💾 Download Snapshot with aria2c
gen:vote-account - 🗳️ Generate Vote Account
switch - 🔁 Switch Validator Identity - No DownTime Migration