No point in using a hash here IMO. I'd just use a multimap from COutPoints to the wallet transacitons they are spent int.