Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fa9e739740
  1. 5
      gecko/gecko_blocks.c
  2. 2
      iguana/iguana_tx.c

5
gecko/gecko_blocks.c

@ -128,7 +128,10 @@ int32_t gecko_hwmset(struct supernet_info *myinfo,struct iguana_info *virt,struc
} else return(-1);
addr = &virt->internaladdr;
if ( gecko_ensurebundle(virt,block,block->height,depth) == 0 )
{
printf("no bundle for %s.%d\n",virt->symbol,block->height);
return(-1);
}
if ( iguana_ramchain_data(virt,addr,txdata,txarray,block->RO.txn_count,data,datalen) >= 0 )
{
block->fpipbits = (uint32_t)addr->ipbits;
@ -155,7 +158,7 @@ int32_t gecko_hwmset(struct supernet_info *myinfo,struct iguana_info *virt,struc
//printf("created block.%d [%d:%d] %d\n",block->height,bp!=0?bp->hdrsi:-1,block->height%virt->chain->bundlesize,bp->numsaved);
}
return(block->height);
}
} else printf("Error updating virt ramchain\n");
return(-1);
}

2
iguana/iguana_tx.c

@ -319,7 +319,7 @@ int32_t iguana_peerblockrequest(struct iguana_info *coin,uint8_t *blockspace,int
if ( coin->virtualchain != 0 )
;
if ( block != 0 )
printf("iguana_peerblockrequest: block.%p ht.%d mainchain.%d [%d:%d] from %s\n",block,block->height,block->mainchain,bp->hdrsi,bundlei,addr!=0?addr->ipaddr:"local");
printf("iguana_peerblockrequest: block.%p ht.%d mainchain.%d [%d:%d] from %s bp.%p rdata.%p\n",block,block->height,block->mainchain,bp->hdrsi,bundlei,addr!=0?addr->ipaddr:"local",bp,bp!=0?bp->ramchain.H.data:0);
else printf("iguana_peerblockrequest: block.%p [%d:%d]\n",block,bp->hdrsi,bundlei);
}
} //else printf("iguana_peerblockrequest: cant find %s\n",bits256_str(str,hash2));

Loading…
Cancel
Save