Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fe31866ffe
  1. 3
      iguana/iguana_recv.c
  2. 2
      iguana/iguana_spendvectors.c

3
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);

2
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;

Loading…
Cancel
Save