Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
5497296d57
  1. 2
      iguana/iguana_realtime.c
  2. 7
      iguana/iguana_unspents.c

2
iguana/iguana_realtime.c

@ -249,7 +249,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
} }
//portable_mutex_unlock(&coin->RTmutex); //portable_mutex_unlock(&coin->RTmutex);
bp = coin->current; bp = coin->current;
if ( bp == 0 || iguana_validated(coin) < bp->hdrsi ) if ( bp == 0 )//|| iguana_validated(coin) < bp->hdrsi )
{ {
printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi); printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi);
return(0); return(0);

7
iguana/iguana_unspents.c

@ -921,8 +921,11 @@ int64_t iguana_utxoaddr_gen(struct iguana_info *coin,int32_t maketable)
printf("free %s utxoaddrs\n",coin->symbol); printf("free %s utxoaddrs\n",coin->symbol);
HASH_ITER(hh,coin->utxoaddrs,utxoaddr,tmp); HASH_ITER(hh,coin->utxoaddrs,utxoaddr,tmp);
{ {
HASH_DELETE(hh,coin->utxoaddrs,utxoaddr); if ( utxoaddr != 0 )
free(utxoaddr); {
HASH_DELETE(hh,coin->utxoaddrs,utxoaddr);
free(utxoaddr);
}
} }
coin->utxoaddrs = 0; coin->utxoaddrs = 0;
} }

Loading…
Cancel
Save