diff options
author | Matt Corallo <git@bluematt.me> | 2016-10-02 11:29:35 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-10-31 10:08:11 -0400 |
commit | d6ea737be19a0001e69e4e854eb1cef21523ea7a (patch) | |
tree | ef4b8d18a8c604db15a33314aead7f4c5e4ab583 /src/main.h | |
parent | fc0c24f67b4323f215f908767b644bf022c7fe9a (diff) |
Remove network state wipe from UnloadBlockIndex.
UnloadBlockIndex is only used during init if we end up reindexing
to clear our block state so that we can start over. However, at
that time no connections have been brought up as CConnman hasn't
been started yet, so all of the network processing state logic is
empty when its called.
Additionally, the initialization of the recentRejects set is moved
to InitPeerLogic.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index 3eab9b89da..3cab1e6afa 100644 --- a/src/main.h +++ b/src/main.h @@ -542,7 +542,7 @@ private: CConnman* connman; public: - PeerLogicValidation(CConnman* connmanIn) : connman(connmanIn) {} + PeerLogicValidation(CConnman* connmanIn); virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload); virtual void BlockChecked(const CBlock& block, const CValidationState& state); |