diff options
author | Matt Corallo <git@bluematt.me> | 2018-07-09 20:06:39 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2018-07-09 20:06:39 -0400 |
commit | beef7ec4be725beea870a2da510d2817487601ec (patch) | |
tree | ef04c6baeb971bf61a8d4024e15034c527ac059b /src/wallet/wallet.h | |
parent | b641f60425674d737d77abd8c49929d953ea4154 (diff) | |
download | bitcoin-beef7ec4be725beea870a2da510d2817487601ec.tar.xz |
Remove useless mapRequest tracking that just effects Qt display.
I thought we had removed this a long time ago, TBH, its really
confusing feedback to users that we display whether a tx was
broadcast to immediate neighbor nodes, given that has little
indication of whether the tx propagated very far.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index b829394847..ef03a1eaed 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -486,7 +486,6 @@ public: bool IsTrusted() const; int64_t GetTxTime() const; - int GetRequestCount() const; // RelayWalletTransaction may only be called if fBroadcastTransactions! bool RelayWalletTransaction(CConnman* connman); @@ -820,7 +819,6 @@ public: int64_t nOrderPosNext = 0; uint64_t nAccountingEntryNumber = 0; - std::map<uint256, int> mapRequestCount; std::map<CTxDestination, CAddressBookData> mapAddressBook; @@ -1064,16 +1062,6 @@ public: const std::string& GetLabelName(const CScript& scriptPubKey) const; - void Inventory(const uint256 &hash) override - { - { - LOCK(cs_wallet); - std::map<uint256, int>::iterator mi = mapRequestCount.find(hash); - if (mi != mapRequestCount.end()) - (*mi).second++; - } - } - void GetScriptForMining(std::shared_ptr<CReserveScript> &script); unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |