Solana Testnet Validator - Hızlı başlangıç
Kurulum ve Geçerlilik Başlatıcı Başlat
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 deployDeploy Solana Testnet Firedancer Validator
Önlemler
Lütfen bir sunucuyu birlikte hazırlayın Ubuntu 24.04 LTS temiz bir şekilde kuruldu.
About Key processing
Yeni For new For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For For Yeni For For Yeni For For Yeni For For Yeni For For Yeni For Yeni For For Yeni For For For Yeni For For For Yeni For For For Yeni For For For Yeni For For For Yeni For For For For For Yeni For For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For For Yeni For Yeni For Yeni For For For Yeni For Yeni For Yeni For Yeni For Yeni For Yeni For For For Yeni For For SLV Firedancer dağıtımları, unstaked-keymate.json başlangıçta güvenlik için kimlik anahtarı olarak her zaman kullanılır.
Bu, çift oylama gibi kritik konuları önlemek için en iyi bir uygulamadır.
İşbirlikten Sonra Kimlik Ayarı
Dağıtımdan sonra, aşağıdaki komutla yetkili kimlik anahtarını ayarlamasından emin olun:
bash
slv v set:identity -n testnet --pubkey <name>slv v set:identity -n testnet --pubkey <name>Testnet için bir Baremetal Server hazırlamak
koşmak mümkün olsa da koşmak mümkün Solana VPS veya sanal makinelerde düğümler (VM), en iyi performans ve istikrara ulaşmak pratikte zor. Solana Resmi olarak, sanallaştırılmış ortamlardan çok daha yüksek performans sağlayan çıplak metal sunucuları kullanmayı tavsiye eder.
Testnet ortamları ananet ile kıyasla daha düşük yük olduğundan, 16-core Ryzen ile sunucuları kullanarak istikrarlı bir operasyon doğruladık. CPU 128GB Prat5 RAM. Bu sunucu yapılandırmasını kullanarak operasyonel maliyetleri azaltmaya yardımcı olur, bu nedenle tavsiye edilir.
Ne zaman koşarsan
slv v init komut, açık metal sunucunuzun zaten set olup olmadığını soracaksınız: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
noBu öğretici seçtiğinizi varsayıyor
yes.Henüz çıplak metal sunucunuzu hazırlamazsanız lütfen bakınız Baremetal Server Ayarlama Kılavuzu Kurulum tamamlamak için.
Giriş Server'ın Varsayılan Kullanıcı adı
Çoğu zaman varsayılan kullanıcı adı varsayılan kullanıcıdır
ubuntu or root.bash
? What's the user for the server? (ubuntu) › ubuntu? What's the user for the server? (ubuntu) › ubuntuAccess Server's IP Adres
Girişe giriş IP Sunucunun adresi.
bash
? What's the IP address of the server? ›? What's the IP address of the server? ›SSH için RSA Key
The Lütfen RSA anahtarına yol açın. varsayılan yoldur
~/.ssh/id_rsa.
Şu anda sadece varsayılan yol destekleniyor, bu yüzden lütfen bunu olarak ayarlayın.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 succeededSonra sonra SLV Sunucuya bağlantıyı kontrol edecek. Eğer bağlantı başarılıysa, bir sonraki adım da istenecektir.
Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Select Solana Geçerliklayıcı Tip
Tür seçin Solana Geçerliator.
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-jitoGenrate veya Set the the Solana Geçerli Kimlik Anahtar
Yeni bir kimlik anahtarı oluşturabilir veya mevcut bir kimlik anahtarı ayarlayabilirsiniz.
Bu örnek, "epics-test" adı ile mevcut bir kimlik anahtarı nasıl ayarlanacağını gösteriyor.
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.xLütfen kimlik anahtarını otur
~/.slv/keys/<your-pubkey>.jsonSonra, SLV Yaratacak solv Kullanıcı bir şifre kullanıyor.Otomatik Bölge Tespiti
Sonraki, sistem, yapılandırılan node'den her blok motoru otomatik olarak en yakın bölgeyi tespit edecek. Gerçek ping değerlerini ölçerek, en uygun bölgeyi seçebilirsiniz.
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.wtfGenrate veya Set the the Solana Validator Oy Hesabı Anahtar
Yeni bir oylama hesabı anahtarını oluşturabilir veya mevcut bir oylama hesabı anahtarını ayarlayabilirsiniz.
Bu örnek mevcut bir oylama hesabı anahtarı nasıl ayarlanacağını gösteriyor.
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>Yapı şimdi kurtarıldı
~/.slv/inventory.testnet.validators.yml.Geçerlilikçiyi işe almak
yapılandırmayı onaylarken, dağıtım başlayacaktır.
bash
slv v deploy -n testnetslv v deploy -n testnetİlk olarak, yapılandırma onayı gösterilecektir.
Devam etmek için Evet seçin.
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) › YesBu yapılır! senin! Solana Geçerliktör şimdi dağıtılır. Bu, senkronize etmek için biraz zaman alacaktır. Solana ağ.
Debugging & İzleme
Dağıtımdan sonra, bug ve monitörleri içinde izleyebilirsiniz. Solana RPC Hayır.
Durumu kontrol edebilirsiniz Solana RPC Aşağıdaki komutları kullanmıyor:
bash
$ solv m$ solv msolv Çünkü bir alias agave-validator -l /mnt/ledger.
Bu ayar, eklenmiştir ~/.profile sırasında RPC Node deployment.Kimlik Anahtarını Değiştirin
Dağıtımdan sonra, yetkili kimlik anahtarına almamış anahtarı değiştirmeniz gerekir.
bash
slv v set:identity -n testnet --pubkey epics-testslv v set:identity -n testnet --pubkey epics-testBu komut, yerel bilgisayarınızdan gelen kimlik anahtarını belirleyecek:
~/.slv/keys/<name>.jsonAteştenser
Geçerli olan herhangi bir sorun varsa, aşağıdaki komutla ateştenser yeniden başlatabilirsiniz.
The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The The
--rm seçenek geçerliciyi durduracak, öncülüğü ve anlık yönetmenleri kaldıracak, anlık bulucu kullanarak bir anlık indirecek ve sonra geçerli olana başlayacaktır.bash
slv v restart -n testnet --pubkey <name> --rmslv v restart -n testnet --pubkey <name> --rmSLV Geçerlilik Komutları
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