Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
e725f1cbf1
  1. 2
      README.md
  2. 11
      src/miner.cpp

2
README.md

@ -37,7 +37,7 @@ information or see http://opensource.org/licenses/MIT.
git clone https://github.com/jl777/komodo
cd komodo
./autoconf
./configure
./configure --with-incompatible-bdb --with-gui
./zcutil/fetch-params.sh
cp ~/.zcash-params/testnet3/z9* ~/.zcash-params
./zcutil/build.sh -j8 # -j8 uses 8 threads

11
src/miner.cpp

@ -466,10 +466,13 @@ void static BitcoinMiner(CWallet *pwallet)
);
try {
while (true) {
if (chainparams.MiningRequiresPeers()) {
while (true)
{
if (chainparams.MiningRequiresPeers())
{
// 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.
fprintf(stderr,"Wait for peers...\n");
do {
bool fvNodesEmpty;
{
@ -480,6 +483,7 @@ void static BitcoinMiner(CWallet *pwallet)
break;
MilliSleep(1000);
} while (true);
fprintf(stderr,"Found peers\n");
}
//
@ -506,7 +510,8 @@ void static BitcoinMiner(CWallet *pwallet)
int64_t nStart = GetTime();
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
while (true) {
while (true)
{
// Hash state
crypto_generichash_blake2b_state state;
EhInitialiseState(n, k, state);

Loading…
Cancel
Save