From e5eb5ab560e46a97648e60ca5227cc1f5f1c755f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 17 May 2016 02:13:02 -0500 Subject: [PATCH] test --- iguana/iguana_tx.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_tx.c b/iguana/iguana_tx.c index a24119e80..5ec1e0728 100755 --- a/iguana/iguana_tx.c +++ b/iguana/iguana_tx.c @@ -188,7 +188,10 @@ int32_t iguana_ramtxbytes(struct iguana_info *coin,uint8_t *serialized,int32_t m len += iguana_rwvin(rwflag,0,&serialized[len],&vin); } if ( len > maxlen ) + { + printf("len.%d > maxlen.%d\n",len,maxlen); return(0); + } len += iguana_rwvarint32(rwflag,&serialized[len],&numvouts); for (i=0; i maxlen ) + { + printf("len.%d > maxlen.%d\n",len,maxlen); return(0); + } len += iguana_rwnum(rwflag,&serialized[len],sizeof(tx->locktime),&tx->locktime); *txidp = bits256_doublesha256(txidstr,serialized,len); if ( memcmp(txidp,tx->txid.bytes,sizeof(*txidp)) != 0 ) { - //for (i=0; itxid)); + for (i=0; itxid)); return(-1); } return(len);