To install the local subtensor, run
pm2 start ./subtensor_start.sh -f \
--name subtensor -- \
-e binary \
--network testnet \
--node-type liteOnce started, you can check the local subtensor is running by looking into the log
pm2 log subtensorYou shoud have something similar to
0|subtenso | 2024-03-19 23:31:41 π· Local node identity is: 12D3KooWPycx2kKpkkwbzjFSAKdTVFRvntLUKkC7VB3P7aUThmfX
0|subtenso | 2024-03-19 23:31:41 π» Operating system: linux
0|subtenso | 2024-03-19 23:31:41 π» CPU architecture: x86_64
0|subtenso | 2024-03-19 23:31:41 π» Target environment: gnu
0|subtenso | 2024-03-19 23:31:41 π» CPU: AMD EPYC 7282 16-Core Processor
0|subtenso | 2024-03-19 23:31:41 π» CPU cores: 6
0|subtenso | 2024-03-19 23:31:41 π» Memory: 16002MB
0|subtenso | 2024-03-19 23:31:41 π» Kernel: 5.15.0-25-generic
0|subtenso | 2024-03-19 23:31:41 π» Linux distribution: Ubuntu 22.04.4 LTS
0|subtenso | 2024-03-19 23:31:41 π» Virtual machine: yes
0|subtenso | 2024-03-19 23:31:41 π¦ Highest known block at #0
0|subtenso | 2024-03-19 23:31:41 γ½οΈ Prometheus exporter started at 0.0.0.0:9615
0|subtenso | 2024-03-19 23:31:41 Running JSON-RPC HTTP server: addr=0.0.0.0:9933, allowed origins=["*"]
0|subtenso | 2024-03-19 23:31:41 Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=["*"]
0|subtenso | 2024-03-19 23:31:42 π Discovered new external address for our node: /ip4/155.133.26.129/tcp/30333/ws/p2p/12D3KooWPycx2kKpkkwbzjFSAKdTVFRvntLUKkC7VB3P7aUThmfX
0|subtensor | 2024-03-19 23:31:46 β© Warping, Downloading state, 8.40 Mib (59 peers), best: #0 (0x2f05β¦6c03), finalized #0 (0x2f05β¦6c03), β¬ 1.4MiB/s β¬ 42.2kiB/s
0|subtensor | 2024-03-19 23:31:51 β© Warping, Downloading state, 48.79 Mib (74 peers), best: #0 (0x2f05β¦6c03), finalized #0 (0x2f05β¦6c03), β¬ 4.0MiB/s β¬ 14.2kiB/sAt some point you have to see some line such as the following
Imported #2596101 (0xfdc2β¦8016)Be sure the #xxxxxxxx, which is the current block, matches the one in polkadot
To uninstall the local subtensor, run
pm2 stop subtensor && pm2 delete subtensor