Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2808b30a49
  1. 2
      iguana/iguana_unspents.c

2
iguana/iguana_unspents.c

@ -1283,7 +1283,7 @@ int32_t iguana_volatilesinit(struct iguana_info *coin)
printf("millis %.0f from_ro.%d written.%d crc.%08x/%08x balancehash.(%s) vs (%s)\n",OS_milliseconds(),from_ro,coin->balanceswritten,crc,filecrc,bits256_str(str,balancehash),bits256_str(str2,coin->balancehash));
if ( (filecrc != 0 && filecrc != crc) || memcmp(balancehash.bytes,coin->balancehash.bytes,sizeof(balancehash)) != 0 || memcmp(allbundles.bytes,coin->allbundles.bytes,sizeof(allbundles)) != 0 )
{
printf("balancehash or crc.(%x %x) mismatch or allbundles.(%llx %llx) mismatch\n",crc,filecrc,(long long)allbundles.txid,coin->allbundles.txid);
printf("balancehash or crc.(%x %x) mismatch or allbundles.(%llx %llx) mismatch\n",crc,filecrc,(long long)allbundles.txid,(long long)coin->allbundles.txid);
iguana_truncatebalances(coin);
OS_removefile(crcfname,0);
}

Loading…
Cancel
Save