diff options
| author | John Newbery <[email protected]> | 2019-03-28 13:15:47 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2019-04-09 10:37:49 -0400 |
| commit | f463cd107361a172a17e4c5510b06eb8a67aade0 (patch) | |
| tree | 713da4c32558cf5acbc57a2805895482a3322a90 /src/net_processing.cpp | |
| parent | Merge #15772: test: Properly log named args in authproxy (diff) | |
| download | discoin-f463cd107361a172a17e4c5510b06eb8a67aade0.tar.xz discoin-f463cd107361a172a17e4c5510b06eb8a67aade0.zip | |
[wallet] Keep track of the best block time in the wallet
Move nTimeBestReceived (which is only used for wallet
rebroadcasts) into the wallet.
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 0f13d6e26..3fd3068fb 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -175,8 +175,6 @@ namespace { /** Expiration-time ordered list of (expire time, relay map entry) pairs. */ std::deque<std::pair<int64_t, MapRelay::iterator>> vRelayExpiration GUARDED_BY(cs_main); - std::atomic<int64_t> nTimeBestReceived(0); // Used only to inform the wallet of when we last received a block - struct IteratorComparator { template<typename I> @@ -1121,8 +1119,6 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB }); connman->WakeMessageHandler(); } - - nTimeBestReceived = GetTime(); } /** @@ -3555,7 +3551,7 @@ bool PeerLogicValidation::SendMessages(CNode* pto) // transactions become unconfirmed and spams other nodes. if (!fReindex && !fImporting && !IsInitialBlockDownload()) { - GetMainSignals().Broadcast(nTimeBestReceived, connman); + GetMainSignals().Broadcast(connman); } // |