Remove spent transactions from minting table.

For issue #142.