Every block within a blockchain has a scoring function, with the current state of the blockchain defined as the block with the highest score. The scoring function is defined as:
Score(Genesis Block) = 0
Score(Block) = Score(Parent Block) + Proof of Work