This wiki page says invalid blocks aren't counted towards determining chain length and that make me want understand how invalid blocks are treated.
- Can an valid block be added to an invalid one.. and have it accepted by one or more clients?
If so...
- Do miners of invalid blocks receive a reward for the block? Are the Tx's valid? Are there any examples?
Suppose an invalid block is created and valid block is added to that invalid one. Both blocks are added to the primary chain. ( assume the attacker has 25% compute and has a custom client that pushes both transactions to all peers)
Since every block has a reward, is the reward in the invalid block counted?
Are the transactions within an invalid block still considered valid?
I'm interested in tracing the transactions the occur from these "broken" blocks and to see if my hand-coded client processes the transactions correctly.