This commit is contained in:
jl777
2018-11-11 08:21:30 -11:00
parent 2a2b782298
commit 9c70c039f6

View File

@@ -502,11 +502,13 @@ void *dicefinish(void *_ptr)
{ {
fundingtxid = uint256S((char *)"0x5be49570c56d036abb08b6d084da93a8a86f58fc48db4a1086be95540d752d6f"); fundingtxid = uint256S((char *)"0x5be49570c56d036abb08b6d084da93a8a86f58fc48db4a1086be95540d752d6f");
sbits = stringbits(planstr); sbits = stringbits(planstr);
fprintf(stderr,"do the entropy tx\n");
DicePlanFunds(entropyval,entropytxid,sbits,cp,dicepk,fundingtxid,entropytxs,false); DicePlanFunds(entropyval,entropytxid,sbits,cp,dicepk,fundingtxid,entropytxs,false);
fprintf(stderr,"do the entropy tx %d vs %d\n",entropytxs,DICE_MINUTXOS);
if ( entropytxs < DICE_MINUTXOS ) if ( entropytxs < DICE_MINUTXOS )
{ {
n = sqrt(DICE_MINUTXOS - entropytxs); n = sqrt(DICE_MINUTXOS - entropytxs);
for (i=0; i<n; i++)
{
res = DiceAddfunding(10000,planstr,fundingtxid,COIN/100); res = DiceAddfunding(10000,planstr,fundingtxid,COIN/100);
if ( res.empty() == 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 ) if ( res.empty() == 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 )
{ {
@@ -525,6 +527,7 @@ void *dicefinish(void *_ptr)
} }
} }
} }
}
if ( (newht= KOMODO_INSYNC) == 0 || newht == lastheight ) if ( (newht= KOMODO_INSYNC) == 0 || newht == lastheight )
sleep(3); sleep(3);
else usleep(500000); else usleep(500000);