-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvalidator.sh
executable file
·67 lines (57 loc) · 1.54 KB
/
validator.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
CONSENSUS="
--identity /home/sol/validator-keypair.json
--no-voting
--expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d
--no-poh-speed-test
"
GOSSIP="
--gossip-port 8001
--entrypoint entrypoint.mainnet-beta.solana.com:8001
--entrypoint entrypoint2.mainnet-beta.solana.com:8001
--entrypoint entrypoint3.mainnet-beta.solana.com:8001
--entrypoint entrypoint4.mainnet-beta.solana.com:8001
--entrypoint entrypoint5.mainnet-beta.solana.com:8001
--no-port-check
"
RPC="
--rpc-port 8899
--rpc-bind-address 0.0.0.0
--dynamic-port-range 8000-8020
--full-rpc-api
--private-rpc
--only-known-rpc
--rpc-send-leader-count 3
--rpc-pubsub-enable-block-subscription
--enable-rpc-transaction-history
"
REPLAY="
--replay-forks-threads 4
"
POH="
--experimental-poh-pinned-cpu-core 2
"
LEDGER="
--ledger /mnt/ledger
--accounts /mnt/accounts
--rocksdb-shred-compaction fifo
--limit-ledger-size 50000000
--accounts-db-skip-shrink
--disable-accounts-disk-index
--wal-recovery-mode skip_any_corrupted_record
"
SNAPSHOTS="
--snapshots /mnt/ledger
--minimal-snapshot-download-speed 20971520
--maximum-full-snapshots-to-retain 1
--maximum-incremental-snapshots-to-retain 1
"
LOG="
--log /home/sol/agave-validator.log
"
REPORTING="
--no-os-network-stats-reporting
--no-os-memory-stats-reporting
--no-os-cpu-stats-reporting
"
exec agave-validator $CONSENSUS $GOSSIP $RPC $REPLAY $POH $LEDGER $SNAPSHOTS $LOG $REPORTING