2 ms·
Yes, the original client (Bitcoin Core) and some others enforce it, while others (Electrum) only rely on the proof-of-work, which of course is more risky, but a
by TD-Linux 9y ago
Yes, the original client (Bitcoin Core) and some others enforce it, while others (Electrum) only rely on the proof-of-work, which of course is more risky, but acceptable for some users.
You need to follow the chain back from the very first block (the genesis block), not only to verify the following blocks but any blocks in the future (you could spend an unspent output from the very first block and it would be valid). Luckily, you don't actually need to store the blocks, just the parts that affect future validation (the UTXO set), so you can throw the blocks away after this (called prune mode in Bitcoin Core). As long as you can put up with the initial sync (several hours) the costs aren't too bad. In fact, I would argue the very limited powers given to miners is one of the most important parts of Bitcoin.
When even a single transaction in a block is invalid, the entire block is rejected wholesale.