aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2013-07-31 03:35:33 -0700
committerJeff Garzik <[email protected]>2013-07-31 03:35:33 -0700
commit8351d55cd3955c95c5e3fe065a456db08cc8a559 (patch)
tree2647f444088b18845088a5fac3a6fdabe656eeba /src/main.cpp
parentMake sure new wallet variables are initialized (diff)
parentRemove #define loop from util.h (diff)
downloaddiscoin-8351d55cd3955c95c5e3fe065a456db08cc8a559.tar.xz
discoin-8351d55cd3955c95c5e3fe065a456db08cc8a559.zip
Merge pull request #2866 from gavinandresen/loopdefine
Remove #define loop from util.h
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d35891440..39e1a5159 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4615,7 +4615,7 @@ void static BitcoinMiner(CWallet *pwallet)
CReserveKey reservekey(pwallet);
unsigned int nExtraNonce = 0;
- try { loop {
+ try { while (true) {
if (Params().NetworkID() != CChainParams::REGTEST) {
// Busy-wait for the network to come online so we don't waste time mining
// on an obsolete chain. In regtest mode we expect to fly solo.
@@ -4659,7 +4659,7 @@ void static BitcoinMiner(CWallet *pwallet)
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
uint256 hashbuf[2];
uint256& hash = *alignup<16>(hashbuf);
- loop
+ while (true)
{
unsigned int nHashesDone = 0;
unsigned int nNonceFound;