Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
368a341efc
  1. 1
      iguana/iguana777.c
  2. 2
      iguana/iguana_realtime.c
  3. 6
      iguana/iguana_unspents.c

1
iguana/iguana777.c

@ -444,7 +444,6 @@ void iguana_update_balances(struct iguana_info *coin)
coin->balanceflush = max+1;
while ( coin->balanceflush != 0 )
sleep(3);
iguana_utxoaddr_gen(coin,1);
} else printf("skip flush when max.%d and orig.%d\n",max,coin->origbalanceswritten);
}
}

2
iguana/iguana_realtime.c

@ -377,6 +377,8 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
iguana_RTspendvectors(myinfo,coin,bp);
//portable_mutex_unlock(&coin->RTmutex);
coin->RTgenesis = (uint32_t)time(NULL);
if ( coin->utxoaddrs == 0 )
iguana_utxoaddr_gen(coin,1);
}
}
else

6
iguana/iguana_unspents.c

@ -854,11 +854,11 @@ struct iguana_utxoaddr *iguana_utxoaddrfind(int32_t createflag,struct iguana_inf
memcpy(utxoaddr->rmd160,rmd160,sizeof(utxoaddr->rmd160));
HASH_ADD_KEYPTR(hh,coin->utxoaddrs,utxoaddr->rmd160,sizeof(utxoaddr->rmd160),utxoaddr);
HASH_FIND(hh,coin->utxoaddrs,rmd160,sizeof(utxoaddr->rmd160),utxoaddr);
int32_t i; for (i=0; i<20; i++)
printf("%02x",utxoaddr->rmd160[i]);
printf(" %d of %d: %p\n",coin->utxoaddrind,coin->utxodatasize,coin->utxoaddrs);
if ( utxoaddr == 0 )
{
int32_t i; for (i=0; i<20; i++)
printf("%02x",rmd160[i]);
printf(" %d of %d: %p ",coin->utxoaddrind,coin->utxodatasize,coin->utxoaddrs);
printf("failed to find just added %d of %d\n",coin->utxoaddrind,coin->utxodatasize);
}
}

Loading…
Cancel
Save