Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
b17a61433c
  1. 7
      iguana/iguana_msg.c
  2. 2
      iguana/iguana_realtime.c

7
iguana/iguana_msg.c

@ -591,6 +591,13 @@ int32_t iguana_rwtx(uint8_t zcash,int32_t rwflag,struct OS_memspace *mem,uint8_t
return(-1);
for (i=0; i<msg->tx_in; i++)
{
if ( len+sizeof(bits256)+sizeof(int32_t) > maxsize )
{
{
printf("invalid tx_in.%d len.%d vs maxsize.%d before\n",msg->tx_in,len,maxsize);
return(-1);
}
}
len += iguana_rwvin(rwflag,mem,&serialized[len],&msg->vins[i]);
if ( len > maxsize )
{

2
iguana/iguana_realtime.c

@ -322,7 +322,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
if ( bits256_nonz(hash2) != 0 && (block == 0 || block->txvalid == 0) )
{
uint8_t serialized[512]; int32_t len; struct iguana_peer *addr;
char str[65]; printf("RT error [%d:%d] %s %p\n",bp->hdrsi,i,bits256_str(str,hash2),block);
//char str[65]; printf("RT error [%d:%d] %s %p\n",bp->hdrsi,i,bits256_str(str,hash2),block);
if ( coin->peers != 0 )
{
addr = coin->peers->ranked[rand() % 8];

Loading…
Cancel
Save