Created
May 2, 2023 22:08
-
-
Save bartenbach/c100c163d89a02d39c189f18d379f56f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
{% if metrics_enabled %} | |
export SOLANA_METRICS_CONFIG="host={{ metrics_url }}" | |
{% endif %} | |
{% if log_verbosity is defined %} | |
export RUST_LOG={{ log_verbosity }} | |
{% endif %} | |
exec /home/{{ solana_user }}/bin/solana-validator \ | |
{% if validator_type == "jito-solana" %} | |
--tip-payment-program-pubkey {{ tip_payment_program_pubkey }} \ | |
--tip-distribution-program-pubkey {{ tip_distribution_program_pubkey }} \ | |
--merkle-root-upload-authority {{ merkle_root_upload_authority }} \ | |
--commission-bps {{ mev_commission }} \ | |
--relayer-url {{ relayer_url }} \ | |
--block-engine-address {{ block_engine_address }}\ | |
--block-engine-auth-service-address {{ block_engine_auth_service_address }} \ | |
--shred-receiver-address {{ shred_receiver_addr }} \ | |
{% endif %} | |
--identity {{ identity }} \ | |
--vote-account {{ vote_account }} \ | |
{% if expected_shred_version is defined %} | |
--expected-shred-version {{ expected_shred_version }} \ | |
{% endif %} | |
{% for known_validator in known_validators %} | |
--known-validator {{ known_validator }} \ | |
{% endfor %} | |
--dynamic-port-range {{ port_range }} \ | |
{% if not reporting %} | |
--no-os-cpu-stats-reporting \ | |
--no-os-memory-stats-reporting \ | |
--no-os-network-stats-reporting \ | |
{% endif %} | |
{% if skip_tests is defined %} | |
--skip-poh-verify \ | |
--no-poh-speed-test \ | |
--no-port-check \ | |
{% endif %} | |
{% if no_genesis_fetch %} | |
--no-genesis-fetch \ | |
{% endif %} | |
{% if no_snapshot_fetch %} | |
--no-snapshot-fetch \ | |
{% endif %} | |
--accounts {{ accounts }} \ | |
--ledger {{ ledger }} \ | |
--rpc-port {{ rpc_port }} \ | |
{% if private_rpc %} | |
--private-rpc \ | |
{% endif %} | |
{% if snapshot_path is defined %} | |
--snapshots {{ snapshot_path }} \ | |
{% endif %} | |
{% if incremental_snapshot_path is defined %} | |
--incremental-snapshot-archive-path {{ incremental_snapshot_path }} \ | |
{% endif %} | |
{% if rpc_bind_address is defined %} | |
--rpc-bind-address {{ rpc_bind_address }} \ | |
{% endif %} | |
{% for entrypoint in entrypoints %} | |
--entrypoint {{ entrypoint }} \ | |
{% endfor %} | |
--expected-genesis-hash {{ expected_genesis_hash }} \ | |
{% if limit_ledger_size %} | |
--limit-ledger-size \ | |
{% endif %} | |
{% if solana_validator_log_path is defined %} | |
--log {{ solana_validator_log_path }} | |
{% endif %} | |
{% if additional_args is defined %} | |
{% for additional_arg in additional_args %} | |
--{{ additional_arg }} \ | |
{% endfor %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment