This question already has an answer here:
- What exactly is Mining? 8 answers
Does the miner validate the transaction before putting it on the block for proof of work? my understanding is if the miner does not validate the transaction and published the block and the block gets rejected of the invalid transaction then miner will lose the reward? One more question does the nodes relay the transaction after validation or they just relay it?