From 27e636064fb8045e8fdef1c0459a5b6d526a356a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Oct 2016 12:51:54 -0300 Subject: [PATCH] test --- src/komodo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 79a62fff1..c2cd0dc9b 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -317,7 +317,7 @@ void komodo_nutxoadd(int32_t addflag,int32_t height,int32_t notaryid,uint256 txh struct nutxo_entry *np; if ( numvouts > 1 && notaryid < 64 ) // change to ADD_HASH() and file based { - np = calloc(1,sizeof(*np)); + np = (struct nutxo_entry *)calloc(1,sizeof(*np)); np->height = height; np->txhash = txhash; np->voutmask = voutmask; @@ -340,7 +340,7 @@ int32_t komodo_nutxofind(int32_t height,uint256 txhash,int32_t vout) // change t return(NUTXOS[i].notaryid); }*/ HASH_FIND(hh,NUTXOS,&txhash,sizeof(txhash),np); - if ( np != 0 && ((1LL << vout) & NUTXOS[i].voutmask) != 0 ) + if ( np != 0 && ((1LL << vout) & np->voutmask) != 0 ) return(np->notaryid); return(-1); }