10

I understand that each node has a transaction pool, which is used for adding transactions to the block. What happens to the transactions when a miner's block is declared invalid? Also, how are transactions removed from the local node's transaction pool once they are mined into the block?

eth
  • 85,679
  • 53
  • 285
  • 406
Athaheer
  • 175
  • 7

1 Answers1

5

Answering your first question: If the transactions in a block that is declared invalid have not been already validated somewhere else in the main blockchain, they will be returned to the pool of unconfirmed transactions from which miners mine. There is no loss of data.

Tesa
  • 2,269
  • 20
  • 40
  • Hey @tesa, what happens to the gas spent on invalid block ? Will the user again need to add more gas to the transaction ? – Jyoti Puri Oct 15 '21 at 07:13