Fix PoW mining in mixed PoS/PoW, fix orphaned stake tx

This commit is contained in:
jl777
2018-07-11 02:51:42 -11:00
parent d5a38d16a8
commit 1cdb961ba2
8 changed files with 77 additions and 14 deletions

View File

@@ -939,7 +939,7 @@ void static BitcoinMiner()
solutionTargetChecks.increment();
B = *pblock;
h = UintToArith256(B.GetHash());
for (z=31; z>=16; z--)
/*for (z=31; z>=16; z--)
fprintf(stderr,"%02x",((uint8_t *)&h)[z]);
fprintf(stderr," mined ");
for (z=31; z>=16; z--)
@@ -947,7 +947,7 @@ void static BitcoinMiner()
fprintf(stderr," hashTarget ");
for (z=31; z>=16; z--)
fprintf(stderr,"%02x",((uint8_t *)&HASHTarget_POW)[z]);
fprintf(stderr," POW\n");
fprintf(stderr," POW\n");*/
if ( h > hashTarget )
return false;
if ( IS_KOMODO_NOTARY != 0 && B.nTime > GetAdjustedTime() )