|
@ -221,7 +221,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin) |
|
|
} |
|
|
} |
|
|
if ( coin->spendvectorsaved <= 1 ) |
|
|
if ( coin->spendvectorsaved <= 1 ) |
|
|
{ |
|
|
{ |
|
|
//printf("spendvectorsaved not yet\n");
|
|
|
printf("spendvectorsaved not yet\n"); |
|
|
return(0); |
|
|
return(0); |
|
|
} |
|
|
} |
|
|
for (i=0; i<coin->bundlescount-1; i++) |
|
|
for (i=0; i<coin->bundlescount-1; i++) |
|
@ -239,7 +239,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin) |
|
|
bp = coin->current; |
|
|
bp = coin->current; |
|
|
if ( bp == 0 || iguana_validated(coin) < bp->hdrsi ) |
|
|
if ( bp == 0 || iguana_validated(coin) < bp->hdrsi ) |
|
|
{ |
|
|
{ |
|
|
//printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi);
|
|
|
printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi); |
|
|
return(0); |
|
|
return(0); |
|
|
} |
|
|
} |
|
|
if ( 1 && coin->RTheight > 0 && coin->spendvectorsaved != 1 && coin->bundlescount-1 != coin->balanceswritten ) |
|
|
if ( 1 && coin->RTheight > 0 && coin->spendvectorsaved != 1 && coin->bundlescount-1 != coin->balanceswritten ) |
|
@ -267,7 +267,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//char str[65]; printf("check longest.%d RTheight.%d hwm.%d %s %p\n",coin->longestchain,coin->RTheight,coin->blocks.hwmchain.height,bits256_str(str,bp->hashes[0]),block);
|
|
|
char str[65]; printf("check longest.%d RTheight.%d hwm.%d %s %p\n",coin->longestchain,coin->RTheight,coin->blocks.hwmchain.height,bits256_str(str,bp->hashes[0]),block); |
|
|
if ( bits256_cmp(coin->RThash1,bp->hashes[1]) != 0 ) |
|
|
if ( bits256_cmp(coin->RThash1,bp->hashes[1]) != 0 ) |
|
|
coin->RThash1 = bp->hashes[1]; |
|
|
coin->RThash1 = bp->hashes[1]; |
|
|
bp->lastRT = (uint32_t)time(NULL); |
|
|
bp->lastRT = (uint32_t)time(NULL); |
|
|