Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8ae8589e1c
  1. 3
      iguana/iguana_bundles.c
  2. 4
      iguana/iguana_payments.c
  3. 2
      iguana/iguana_recv.c
  4. 2
      iguana/iguana_spendvectors.c

3
iguana/iguana_bundles.c

@ -919,7 +919,8 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp,int
numrecv++;
datasize += block->RO.recvlen;
}
} else printf("hash mismatch [%d:%d]\n",bp->hdrsi,bundlei);
} else if ( bits256_nonz(block->RO.hash2) != 0 && bits256_nonz(bp->hashes[bundlei]) != 0 )
printf("hash mismatch [%d:%d]\n",bp->hdrsi,bundlei);
} //else printf("[null %d:%d] ",bp->hdrsi,bundlei);
}
}

4
iguana/iguana_payments.c

@ -13,6 +13,8 @@
* *
******************************************************************************/
// compare multiple rawtx returns
#include "iguana777.h"
char *iguana_APIrequest(struct iguana_info *coin,bits256 blockhash,bits256 txid,int32_t seconds)
@ -1095,7 +1097,7 @@ cJSON *iguana_createvins(struct supernet_info *myinfo,struct iguana_info *coin,c
}
if ( (unspentind= iguana_unspentindfind(coin,coinaddr,spendscript,&spendlen,&satoshis,&height,txid,vout,coin->bundlescount-1)) > 0 )
{
printf("[%d] unspentind.%d (%s) spendlen.%d %.8f\n",height/coin->chain->bundlesize,unspentind,coinaddr,spendlen,dstr(satoshis));
//printf("[%d] unspentind.%d (%s) spendlen.%d %.8f\n",height/coin->chain->bundlesize,unspentind,coinaddr,spendlen,dstr(satoshis));
if ( coinaddr[0] != 0 && (waddr= iguana_waddresssearch(myinfo,coin,&wacct,coinaddr)) != 0 )
{
init_hexbytes_noT(pubkeystr,waddr->pubkey,bitcoin_pubkeylen(waddr->pubkey));

2
iguana/iguana_recv.c

@ -339,7 +339,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i
received[addr->addrind] += recvlen;
count[addr->addrind]++;
now = (uint32_t)time(NULL);
if ( ((rand() % 100) == 0 && now > last+10) || now > last+60 )
if ( ((rand() % 1000) == 0 && now > last+10) || now > last+60 )
{
int64_t sum2 = 0,sum = 0,diffr,diff; double bw = 0.;
for (i=0; i<sizeof(received)/sizeof(*received); i++)

2
iguana/iguana_spendvectors.c

@ -1031,7 +1031,7 @@ int32_t iguana_convert(struct iguana_info *coin,int32_t helperid,struct iguana_b
total[helperid % max] += converted;
for (i=sum=0; i<max; i++)
sum += total[i];
if ( converted != 0 )
if ( converted != 0 && bp != coin->current )
printf("[%4d] millis %7.3f converted.%-7d balance calc.%-4d of %4d | total.%llu of %llu depth.%d\n",bp->hdrsi,OS_milliseconds()-startmillis,converted,m,n,(long long)sum,(long long)total_tmpspends,(int32_t)depth);
}
depth--;

Loading…
Cancel
Save