diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2016-04-11 12:52:29 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2016-04-11 15:58:01 -0400 |
commit | 7e91f632c70ff1848a152f24ee67a06796803943 (patch) | |
tree | 53995d33bf585645d43e51abbef2a7caf9754ef3 /src/net.h | |
parent | 934f2b5e769368d1a2407d41d53cafd5d51e6b36 (diff) |
Use txid as key in mapAlreadyAskedFor
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 (which relies on this map to avoid
duplicate tx requests).
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -164,7 +164,7 @@ extern CCriticalSection cs_vNodes; extern std::map<CInv, CDataStream> mapRelay; extern std::deque<std::pair<int64_t, CInv> > vRelayExpiration; extern CCriticalSection cs_mapRelay; -extern limitedmap<CInv, int64_t> mapAlreadyAskedFor; +extern limitedmap<uint256, int64_t> mapAlreadyAskedFor; extern std::vector<std::string> vAddedNodes; extern CCriticalSection cs_vAddedNodes; |