From fe31866ffe40af24ecdd0c45bfbbeceed02226fe Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 14 Aug 2016 16:30:56 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 3 ++- iguana/iguana_spendvectors.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index c75362506..5c5be77ea 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1651,8 +1651,9 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin if ( iguana_balanceflush(myinfo,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); - fprintf(stderr,"%s back balanceflush\n",coin->symbol); + fprintf(stderr,"%s back balanceflush %d\n",coin->symbol,(coin->balanceswritten - 1) * coin->chain->bundlesize); coin->balanceflush = 0; + iguana_utxoaddr_gen(myinfo,coin,(coin->balanceswritten - 1) * coin->chain->bundlesize); } flag += iguana_processrecvQ(coin,&newhwm); flag += iguana_reqhdrs(coin); diff --git a/iguana/iguana_spendvectors.c b/iguana/iguana_spendvectors.c index 1a05f0bf1..9456ecedb 100755 --- a/iguana/iguana_spendvectors.c +++ b/iguana/iguana_spendvectors.c @@ -912,7 +912,7 @@ int32_t iguana_balanceflush(struct supernet_info *myinfo,struct iguana_info *coi } } char str[65]; printf("BALANCES WRITTEN for %d orig.%d bundles %s\n",coin->balanceswritten,coin->origbalanceswritten,bits256_str(str,coin->balancehash)); - iguana_utxoaddr_gen(myinfo,coin,(coin->balanceswritten - 1) * coin->chain->bundlesize); + //iguana_utxoaddr_gen(myinfo,coin,(coin->balanceswritten - 1) * coin->chain->bundlesize); if ( 0 && coin->balanceswritten > coin->origbalanceswritten+10 ) // strcmp(coin->symbol,"BTC") == 0 && { coin->active = 0;