test
This commit is contained in:
@@ -37,7 +37,7 @@ information or see http://opensource.org/licenses/MIT.
|
|||||||
git clone https://github.com/jl777/komodo
|
git clone https://github.com/jl777/komodo
|
||||||
cd komodo
|
cd komodo
|
||||||
./autoconf
|
./autoconf
|
||||||
./configure
|
./configure --with-incompatible-bdb --with-gui
|
||||||
./zcutil/fetch-params.sh
|
./zcutil/fetch-params.sh
|
||||||
cp ~/.zcash-params/testnet3/z9* ~/.zcash-params
|
cp ~/.zcash-params/testnet3/z9* ~/.zcash-params
|
||||||
./zcutil/build.sh -j8 # -j8 uses 8 threads
|
./zcutil/build.sh -j8 # -j8 uses 8 threads
|
||||||
|
|||||||
@@ -466,10 +466,13 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
);
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
while (true) {
|
while (true)
|
||||||
if (chainparams.MiningRequiresPeers()) {
|
{
|
||||||
|
if (chainparams.MiningRequiresPeers())
|
||||||
|
{
|
||||||
// Busy-wait for the network to come online so we don't waste time mining
|
// 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.
|
// on an obsolete chain. In regtest mode we expect to fly solo.
|
||||||
|
fprintf(stderr,"Wait for peers...\n");
|
||||||
do {
|
do {
|
||||||
bool fvNodesEmpty;
|
bool fvNodesEmpty;
|
||||||
{
|
{
|
||||||
@@ -480,6 +483,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
break;
|
break;
|
||||||
MilliSleep(1000);
|
MilliSleep(1000);
|
||||||
} while (true);
|
} while (true);
|
||||||
|
fprintf(stderr,"Found peers\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -506,7 +510,8 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
int64_t nStart = GetTime();
|
int64_t nStart = GetTime();
|
||||||
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
|
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
|
||||||
|
|
||||||
while (true) {
|
while (true)
|
||||||
|
{
|
||||||
// Hash state
|
// Hash state
|
||||||
crypto_generichash_blake2b_state state;
|
crypto_generichash_blake2b_state state;
|
||||||
EhInitialiseState(n, k, state);
|
EhInitialiseState(n, k, state);
|
||||||
|
|||||||
Reference in New Issue
Block a user