Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
bab6fa0e5c
  1. 6
      iguana/iguana_msg.c

6
iguana/iguana_msg.c

@ -606,7 +606,7 @@ int32_t iguana_rwtx(uint8_t zcash,int32_t rwflag,struct OS_memspace *mem,uint8_t
}
}
len += iguana_rwvarint32(rwflag,&serialized[len],&msg->tx_out);
if ( len + msg->tx_out*32 > maxsize )
if ( len + msg->tx_out*8 > maxsize )
{
printf("invalid tx_out.%d len.%d vs maxsize.%d\n",msg->tx_out,len,maxsize);
return(-1);
@ -713,8 +713,8 @@ int32_t iguana_gentxarray(struct iguana_info *coin,struct OS_memspace *mem,struc
}
if ( (n= iguana_rwtx(coin->chain->zcash,0,mem,&data[len],&tx[i],recvlen - len,&tx[i].txid,coin->chain->isPoS,strcmp(coin->symbol,"VPN")==0)) < 0 )
{
for (i=0; i<recvlen-hdrlen; i++)
printf("%02x",data[hdrlen+i]);
//for (i=0; i<recvlen-hdrlen; i++)
// printf("%02x",data[hdrlen+i]);
printf(" <- gentxarrayC error i.%d len.%d > recvlen.%d, n.%d hdrlen.%d\n",i,len,recvlen,n,hdrlen);
return(-1);
}

Loading…
Cancel
Save