How does GHOSTDAG track which blocks carry consensus weight in Kaspa?
GHOSTDAG classifies every block as either "blue" or "red" and stores those results in structured lists so the network always knows which blocks are part of consensus. Blue blocks — the ones the protocol considers valid participants in consensus — are recorded alongside Anticone size data, a measurement the protocol uses when it needs to classify future blocks. Red blocks, which fall outside the main consensus cluster, are simply appended to the red list without extra metadata. This two-list organization matters for beginners because it is what lets Kaspa keep a complete, unambiguous record of the entire blockDAG while making it crystal-clear which blocks actually count toward confirming your transaction.