'What does solana-test-validator do on the background?
When run solana-test-validator it begins a new process with the following output:
Ledger location: test-ledger
Log: test-ledger/validator.log
Identity: 4876NsAf6yH8c7uPXybETZPit142i2QhR7tfSoTPYjHf
Genesis Hash: CrqeHuGVmgHL54Sri7dEm2aCRLFopJrTHoQBYe6ciF7N
Version: 1.8.17
Shred Version: 28931
Gossip Address: 127.0.0.1:1024
TPU Address: 127.0.0.1:1027
JSON RPC URL: http://127.0.0.1:8899
⠄ 01:44:22 | Processed Slot: 48335 | Confirmed Slot: 48335 | Finalized Slot: 483
I understand:
- what consensus alg or leader election is,
- how blocks are ended up in a block chain
- what a Solana validator is
I've also read Solana cluster, validator, slot, epochs docs. It says
Slot: The period of time for which each leader ingests transactions and produces a block.
Could someone explain what happens when we run solana-test-validator? In particular, does it produce blocks/ledger entries? From what it continuously displays
⠄ 01:44:22 | Processed Slot: 48335 | Confirmed Slot: 48335 | Finalized Slot: 483
it seems to be producing new blocks? If so, why do we need those ledger entries? After all nothing happens locally on my cluster (no transactions, not sol transfer....).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
