Previously we used the CInv that would be sent to the peer announcing the transaction as the key, but using the txid instead allows us to decouple the p2p layer from the application logic.
This is a minor preparatory commit for segwit, in which the inv-type will no longer be the same for all transaction requests.