BTC Miners do work on the same transactions. But when two or more miners create a block with the same transaction in it then the other miners are supposed to refuse one of the two blocks to prevent double spending
https://t.co/v8sJO6nx7q
