HomePhabricator

Remove network state wipe from UnloadBlockIndex.

Description

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.

Details

Provenance
Matt Corallo <git@bluematt.me>Authored on Oct 2 2016, 15:29
deadalnixPushed on May 14 2017, 22:04
Parents
rABCfc0c24f67b43: Move MarkBlockAsReceived out of ProcessNewMessage
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Corallo <git@bluematt.me> committed rABCd6ea737be19a: Remove network state wipe from UnloadBlockIndex. (authored by Matt Corallo <git@bluematt.me>).Oct 31 2016, 14:08