|
@ -218,6 +218,8 @@ int32_t iguana_peerblockrequest(struct iguana_info *coin,uint8_t *blockspace,int |
|
|
total = iguana_rwblock(1,&checkhash2,&blockspace[sizeof(struct iguana_msghdr) + 0],&msgB); |
|
|
total = iguana_rwblock(1,&checkhash2,&blockspace[sizeof(struct iguana_msghdr) + 0],&msgB); |
|
|
if ( bits256_cmp(checkhash2,block->RO.hash2) != 0 ) |
|
|
if ( bits256_cmp(checkhash2,block->RO.hash2) != 0 ) |
|
|
{ |
|
|
{ |
|
|
|
|
|
static int counter; |
|
|
|
|
|
if ( counter++ < 100 ) |
|
|
printf("iguana_peerblockrequest: blockhash mismatch ht.%d\n",bp->bundleheight+bundlei); |
|
|
printf("iguana_peerblockrequest: blockhash mismatch ht.%d\n",bp->bundleheight+bundlei); |
|
|
return(-1); |
|
|
return(-1); |
|
|
} |
|
|
} |
|
@ -229,7 +231,9 @@ int32_t iguana_peerblockrequest(struct iguana_info *coin,uint8_t *blockspace,int |
|
|
total += len; |
|
|
total += len; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
|
|
|
static int counter; |
|
|
char str[65],str2[65]; |
|
|
char str[65],str2[65]; |
|
|
|
|
|
if ( counter++ < 100 ) |
|
|
printf("error getting txi.%d [%d:%d] cmp.%s %s\n",i,bp->hdrsi,bundlei,bits256_str(str,checktxid),bits256_str(str2,T.txid)); |
|
|
printf("error getting txi.%d [%d:%d] cmp.%s %s\n",i,bp->hdrsi,bundlei,bits256_str(str,checktxid),bits256_str(str2,T.txid)); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|