Diagnostic Data
Diagnostic Data
We store in LevelDB a limited amount of some operational data about the network that is intended for use when diagnosing any issues with the mainnet.
Globally, the amount of data stored is controlled by the constant MAX_ENTRIES_FOR_DIAGNOSTIC_DATA
, which is usually set to either 25 or 50.
This is the current data stored for diagnostic purposes:
LevelDB location | Data stored | Storage timing | Tool for data extraction |
---|---|---|---|
persistence/diagnosticNodes | DS and shard peers | Every vacuous epoch | getnetworkhistory |
persistence/diagnosticCoinb | Coinbase values and distribution | Every DS block | getrewardhistory |
To use the diagnostic tools:
- Make sure there is a
persistence
subfolder in your current directory - Make sure
persistence/diagnosticNodes
andpersistence/diagnosticCoinb
contain the data you want to extract - Run
getnetworkhistory <name of output CSV file>
orgetrewardhistory <name of output CSV file>
- Output CSV file will appear in the current directory. Use Excel or LibreOffice Calc to open it