I have been researching a little on the concept of blockchain for some time now. If there is any corrupted block then others won't try to build blocks on top of it. But suppose for some time if it remains as the longest chain and if someone adds a block on top of it, and after a while it becomes shorter.. then what happens to the block added on top of the corrupted block?
Thanks in advance. Please also suggest relevant websites or material from which I can learn more about it. Thanks again!