|
@ -98,7 +98,7 @@ int32_t iguana_unspentind2txid(struct supernet_info *myinfo,struct iguana_info * |
|
|
int32_t iguana_unspentindfind(struct supernet_info *myinfo,struct iguana_info *coin,char *coinaddr,uint8_t *spendscript,int32_t *spendlenp,uint64_t *valuep,int32_t *heightp,bits256 txid,int32_t vout,int32_t lasthdrsi,int32_t mempool) |
|
|
int32_t iguana_unspentindfind(struct supernet_info *myinfo,struct iguana_info *coin,char *coinaddr,uint8_t *spendscript,int32_t *spendlenp,uint64_t *valuep,int32_t *heightp,bits256 txid,int32_t vout,int32_t lasthdrsi,int32_t mempool) |
|
|
{ |
|
|
{ |
|
|
struct iguana_txid *tp,TX; struct gecko_memtx *memtx; struct iguana_pkhash *P; struct iguana_unspent *U; struct iguana_bundle *bp; struct iguana_ramchaindata *rdata; int64_t RTspend; int64_t value; int32_t pkind,hdrsi,firstvout,spentheight,flag=0,unspentind = -1; |
|
|
struct iguana_txid *tp,TX; struct gecko_memtx *memtx; struct iguana_pkhash *P; struct iguana_unspent *U; struct iguana_bundle *bp; struct iguana_ramchaindata *rdata; int64_t RTspend; int64_t value; int32_t pkind,hdrsi,firstvout,spentheight,flag=0,unspentind = -1; |
|
|
portable_mutex_lock(&coin->RTmutex); |
|
|
//portable_mutex_lock(&coin->RTmutex);
|
|
|
if ( valuep != 0 ) |
|
|
if ( valuep != 0 ) |
|
|
*valuep = 0; |
|
|
*valuep = 0; |
|
|
if ( coinaddr != 0 ) |
|
|
if ( coinaddr != 0 ) |
|
@ -143,7 +143,7 @@ int32_t iguana_unspentindfind(struct supernet_info *myinfo,struct iguana_info *c |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
portable_mutex_unlock(&coin->RTmutex); |
|
|
//portable_mutex_unlock(&coin->RTmutex);
|
|
|
return(unspentind); |
|
|
return(unspentind); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|