Validator Settings

Your validator service file defaults for solana.service should contain following lines:

--rpc-port 8899 \
--full-rpc-api \
--relayer-url http://127.0.0.1:11226 \

--rpc-port 8899 opens RPC port on 8899 --full-rpc-api allows for websocket port to be opened on 8900 (RPC port +1) --relayer-url http://127.0.0.1:11226 tells validator that relayer is operating on default port 11226

With X lite-relayer you don't need your validator to keep heavy computational account-indexes, so you can delete account-index and account-index-include-key from your service file when connecting to X.

Relayer installation and settings are in next page

If you have modified your solana.service file don't forget to renew systemd:

sudo systemctl daemon-reload

Validator can switch to relayer without restart. In order to do this pass following command in terminal with your own path to ledger

solana-validator --ledger /PATH/TO/LEDGER set-relayer-config --relayer-url http://127.0.0.1:11226

If you have modified any of --rpc-port or --full-rpc-api lines that didn't present in your solana.service before, then you need to restart your validator. In general case this could be done with simple command

sudo systemctl restart solana

But in reality you should be aware of skipping your leader slots and sync time. Restart only when you have window between your leader schedule.

Last updated