I started learning more technical aspects of bitcoin lately and so I started reading it's whitepaper. I have a doubt in the 'reclaiming the disk space' section from the bitcoin whitepaper.
Once the latest transaction in a coin is buried under enough blocks, the spent transactions before
it can be discarded to save disk space. To facilitate this without breaking the block's hash,
transactions are hashed in a Merkle Tree [7][2][5], with only the root included in the block's hash.
Old blocks can then be compacted by stubbing off branches of the tree. The interior hashes do
not need to be stored.
As per the above, it is enough to store the block header and discard all the transactions inside the block by just keeping the root hash.Now assume I am trying to double spend a transaction which was previously mined and buried under many lateral blocks.
How will the miner validate that the transaction is not being double spent since the miner will only be validating the block header and not all the transactions inside it?
Could someone clear my understanding ?