diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 3fee6c75d..7cbc2c15c 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -813,7 +813,9 @@ void basilisks_loop(void *arg) if ( coin->relay_RTheights[i] != 0 ) break; if ( i == BASILISK_MAXRELAYS || (time(NULL) % 60) == 0 ) + { basilisk_unspents_update(myinfo,coin); + } } } //if ( (myinfo->RELAYID >= 0 || time(NULL) < myinfo->DEXactive) ) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index acb70d555..fbab86118 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -18,7 +18,7 @@ void iguana_RTramchainfree(struct iguana_info *coin,struct iguana_bundle *bp) { int32_t hdrsi; - portable_mutex_lock(&coin->RTmutex); + //portable_mutex_lock(&coin->RTmutex); if ( coin->utxotable != 0 ) { printf("free RTramchain\n"); @@ -40,7 +40,7 @@ void iguana_RTramchainfree(struct iguana_info *coin,struct iguana_bundle *bp) coin->RTdatabad = 0; printf("done RTramchain\n"); } - portable_mutex_unlock(&coin->RTmutex); + //portable_mutex_unlock(&coin->RTmutex); } void *iguana_ramchainfile(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_ramchain *dest,struct iguana_ramchain *R,struct iguana_bundle *bp,int32_t bundlei,struct iguana_block *block) @@ -69,7 +69,7 @@ void *iguana_ramchainfile(struct supernet_info *myinfo,struct iguana_info *coin, void iguana_RTramchainalloc(char *fname,struct iguana_info *coin,struct iguana_bundle *bp) { uint32_t i,changed = 0; struct iguana_ramchaindata *rdata; struct iguana_ramchain *dest = &coin->RTramchain; struct iguana_blockRO *B; struct iguana_bundle *tmpbp; - portable_mutex_lock(&coin->RTmutex); + //portable_mutex_lock(&coin->RTmutex); if ( (rdata= dest->H.data) != 0 ) { i = 0; @@ -111,7 +111,7 @@ void iguana_RTramchainalloc(char *fname,struct iguana_info *coin,struct iguana_b sleep(1); } } - portable_mutex_unlock(&coin->RTmutex); + //portable_mutex_unlock(&coin->RTmutex); } void iguana_rdataset(struct iguana_ramchain *dest,struct iguana_ramchaindata *rdest,struct iguana_ramchain *src) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index a1db90b1f..c39ee2631 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1645,10 +1645,10 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin if ( coin->balanceflush != 0 ) { fprintf(stderr,"%s call balanceflush\n",coin->symbol); - portable_mutex_lock(&coin->RTmutex); + //portable_mutex_lock(&coin->RTmutex); if ( iguana_balanceflush(coin,coin->balanceflush) > 0 ) printf("balanceswritten.%d flushed coin->balanceflush %d vs %d coin->longestchain/coin->chain->bundlesize\n",coin->balanceswritten,coin->balanceflush,coin->longestchain/coin->chain->bundlesize); - portable_mutex_unlock(&coin->RTmutex); + //portable_mutex_unlock(&coin->RTmutex); fprintf(stderr,"%s back balanceflush\n",coin->symbol); coin->balanceflush = 0; } diff --git a/iguana/iguana_sign.c b/iguana/iguana_sign.c index 3718e41cf..a62b75f65 100755 --- a/iguana/iguana_sign.c +++ b/iguana/iguana_sign.c @@ -1099,7 +1099,7 @@ int32_t iguana_signrawtransaction(struct supernet_info *myinfo,struct iguana_inf if ( (txobj= bitcoin_hex2json(coin,&txid,msgtx,rawtx,extraspace,extralen,serialized4)) != 0 ) { //printf("txobj.(%s)\n",jprint(txobj,0)); - if ( extralen == 0 && (checkstr= bitcoin_json2hex(myinfo,coin,&txid,txobj,0)) != 0 ) + if ( (checkstr= bitcoin_json2hex(myinfo,coin,&txid,txobj,0)) != 0 ) { if ( strcmp(rawtx,checkstr) != 0 ) {