Skip to content

Commit

Permalink
CSporkManager::Clear() should not alter sporkPubKeyID and sporkPrivKey (
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored Sep 26, 2018
1 parent 8c0dca2 commit c295873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ void CSporkManager::Clear()
LOCK(cs);
mapSporksActive.clear();
mapSporksByHash.clear();
sporkPubKeyID.SetNull();
sporkPrivKey = CKey();
// sporkPubKeyID and sporkPrivKey should be set in init.cpp,
// we should not alter them here.
}

void CSporkManager::CheckAndRemove()
Expand Down

0 comments on commit c295873

Please sign in to comment.