sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.10.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
Download and build binaries
Copy
Install Cosmovisor and create a service
Copy
Initialize the node
Copy
Download latest chain snapshot
Copy
Start service and check the logs
Copy
Automatic Installation
Moniker yerine validator isminizi giriniz.
Copy
Run Validator
Burdaki moniker, identity, details, website gibi kısımları değiştirip cüzdan adınızı girip düzenledikten sonra çalıştırmanız yeterli (1000000uinit = 1 INIT)
Copy
Oracle Setup
Öncelikle aynı sunucu içinde bir tane screen oluşturalım.
Copy
Daha sonra bu screene ulaşmak için screen -r oracle komutunu çalıştırmanız yeterli
Bu bölüm sadece aktif set için geçerli ama şimdiden kurabilirsiniz.
Copy
Step 2: Oracle Çalıştıralım
CREATE SYSTEMD SERVICE
Copy
ENABLE AND START SYSTEMD SERVICE
Copy
Step 3: Validating Prices
Aşağıdaki komutu çalıştırdığınızda fiyatlar görmeniz gerekiyor. Fakat aktif sette değilseniz burada fiyat göremeyeceksiniz. CTRL C ile durdurup devam edebilirsiniz.
Copy
Step 4: Enable Oracle Vote Extension
config dosyası içinde app.toml bulup, aşağıdaki gibi düzenlemeniz gerekiyor. Bu adımları yaptıktan sonra,
###############################################################################
### Oracle ###
###############################################################################
[oracle]
# Enabled indicates whether the oracle is enabled.
enabled = "true"
# Oracle Address is the URL of the out of process oracle sidecar. This is used to
# connect to the oracle sidecar when the application boots up. Note that the address
# can be modified at any point, but will only take effect after the application is
# restarted. This can be the address of an oracle container running on the same
# machine or a remote machine.
oracle_address = "127.0.0.1:8080"
# Client Timeout is the time that the client is willing to wait for responses from
# the oracle before timing out.
client_timeout = "500ms"
# MetricsEnabled determines whether oracle metrics are enabled. Specifically
# this enables instrumentation of the oracle client and the interaction between
# the oracle and the app.
metrics_enabled = "false"
journalctl -fu slinky --no-hostname
14T19:07:08.296Z","num_prices":65}
May 14 19:07:08 slinky[877177]: {"level":"info","ts":"2024-05-14T19:07:08.547Z","caller":"oracle/oracle.go:163","msg":"oracle updated prices","pid":877177,"process":"oracle","last_sync":"2024-05-14T19:07:08.547Z","num_prices":65}
May 14 19:07:08 slinky[877177]: {"level":"info","ts":"2024-05-14T19:07:08.796Z","caller":"oracle/oracle.go:163","msg":"oracle updated prices","pid":877177,"process":"oracle","last_sync":"2024-05-14T19:07:08.796Z","num_prices":65}
May 14 19:07:09 slinky[877177]: {"level":"info","ts":"2024-05-14T19:07:09.045Z","caller":"oracle/oracle.go:163","msg":"oracle updated prices","pid":877177,"process":"oracle","last_sync":"2024-05-14T19:07:09.045Z","num_prices":65}
May 14 19:07:09 slinky[877177]: {"level":"info","ts":"2024-05-14T19:07:09.296Z","caller":"oracle/oracle.go:163","msg":"oracle updated prices","pid":877177,"process":"oracle","last_sync":"2024-05-14T19:07:09.296Z","num_prices":65}
May 14 19:07:09 slinky[877177]: {"level":"info","ts":"2024-05-14T19:07:09.544Z","caller":