Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
adjust sync_blocks calls in mintingtest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg-Griffith committed Apr 30, 2019
1 parent 5ac724a commit 57b8d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 3 additions & 2 deletions qa/rpc-tests/mintingtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ def run_test(self):
# generate non-empty blocks on the mining node
for x in range(0, self.generatedblocks):
self.nodes[0].generate(1)
if x % 25 == 0:
self.sync_blocks()

self.sync_blocks()

time.sleep(45)
time.sleep(25)

# check that nodes across different db's have the same data
for x in range(0, self.blockstotest):
Expand Down
9 changes: 0 additions & 9 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3470,15 +3470,6 @@ bool CWallet::CreateCoinStake(const CKeyStore &keystore,
fKernelFound = true;
break;
}
else
{
/// TODO
// sleep very briefly before trying next pcoin for kernel. removing this would be an obvious opimization
// but it is here to keep cpu temps
// lower in times of high difficulty staking, possible change to configurable parameter later so i
// will mark this with todo
MilliSleep(5);
}
}
if (fKernelFound)
break; // if kernel is found stop searching
Expand Down

0 comments on commit 57b8d88

Please sign in to comment.