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