Remove unnecessary staking delay

This commit is contained in:
Michael Toutonghi
2018-08-09 17:09:09 -07:00
parent 0ba2065183
commit 049e890a79
2 changed files with 1 additions and 17 deletions

View File

@@ -854,22 +854,6 @@ void static VerusStaker(CWallet *pwallet)
// try a nice clean peer connection to start
waitForPeers(chainparams);
// try a nice clean peer connection to start
waitForPeers(chainparams);
CBlockIndex* pindexPrev, *pindexCur;
do {
{
LOCK(cs_main);
pindexPrev = chainActive.Tip();
}
MilliSleep(5000 + rand() % 5000);
{
LOCK(cs_main);
pindexCur = chainActive.Tip();
}
} while (pindexPrev != pindexCur);
sleep(5);
{
LOCK(cs_main);