At the end of my lecture, my lecturer asked a question that we never had time to cover:
A miner creates a block A, which contains address b, on which they want to receive their rewards. An attacker changes the contents of block A, replacing address b with an adversarial address b’. What needs to happen for the attacker to receive the rewards for block A?
I know similar questions have been asked before but they all explain why an attacker can't receive the reward, I would like to know if there is any hypothetical scenario in which they could if they weren't limited by hash rate or other factors.
I have been thinking about this and feel like it is a trick question because there is no way that the attacker can just change the address and receive the rewards, because if the attacker edits any data on the block it will produce a different hash and won't be validated by the network, so the attacker won't receive the rewards. So is there any way for the attacker to actually receive the rewards?