bitcoin/bitcoin — pull request #1971 by sipa (2012-11-01 17:04:39+00:00)
Title: Bugfix: do not keep relaying spent wallet transactions

The original test (checking whether the transaction occurs in the txindex) is not usable anymore, as it will miss anything already fully spent. However, as merkle transactions (and by extension, wallet transactions) track which block they were last seen being included in, we can use that to determine the need for rebroadcasting.