Bitcoin,I want to transfer some Amount so I broadcast a transaction that is picked up by miners. So if my transaction get's in 2 different currently processing blocks by different miners and one of them is mined into the blockchain, the second miner's block is dropped.
My transaction did, but also some transactions did not make it to the mined block.
How does the protocol know which transactions made it and which didn't? Another way of asking, how is a transaction "marked" as mined so if it's still floating in the p2p network, miners know that this transaction is already in the blockchain.