Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f8d1b0e1da
  1. 1
      iguana/iguana_ramchain.c
  2. 2
      iguana/iguana_tx.c

1
iguana/iguana_ramchain.c

@ -81,6 +81,7 @@ struct iguana_kvitem *iguana_hashsetPT(struct iguana_ramchain *ramchain,int32_t
void iguana_blocksetcounters(struct iguana_info *coin,struct iguana_block *block,struct iguana_ramchain * ramchain)
{
printf("iguana_blocksetcounters set 1st txidind.%u <- ht.%d\n",ramchain->H.txidind,block->height);
block->RO.firsttxidind = ramchain->H.txidind;
block->RO.firstvout = ramchain->H.unspentind;
block->RO.firstvin = ramchain->H.spendind;

2
iguana/iguana_tx.c

@ -234,7 +234,7 @@ int32_t iguana_peerblockrequest(struct iguana_info *coin,uint8_t *blockspace,int
total = iguana_rwblock(coin->symbol,coin->chain->zcash,coin->chain->auxpow,coin->chain->hashalgo,1,&checkhash2,&blockspace[sizeof(struct iguana_msghdr) + 0],&msgB,max);
if ( bits256_cmp(checkhash2,block->RO.hash2) != 0 )
{
static int counter;
//static int counter;
//if ( counter++ < 100 )
printf("iguana_peerblockrequest: blockhash mismatch ht.%d\n",bp->bundleheight+bundlei);
return(-1);

Loading…
Cancel
Save