Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2ddef9dedd
  1. 3
      basilisk/basilisk_bitcoin.c
  2. 1
      iguana/iguana_unspents.c

3
basilisk/basilisk_bitcoin.c

@ -1016,7 +1016,10 @@ struct basilisk_spend *basilisk_addspend(struct supernet_info *myinfo,char *symb
for (i=0; i<myinfo->numspends; i++)
{
if ( myinfo->spends[i].vout == vout && bits256_cmp(txid,myinfo->spends[i].txid) == 0 )
{
char str[65]; printf("found spend.%s v%d skip it\n",bits256_str(Str,txid),vout);
return(&myinfo->spends[i]);
}
}
if ( addflag != 0 && i == myinfo->numspends )
{

1
iguana/iguana_unspents.c

@ -551,6 +551,7 @@ int32_t iguana_unspentslists(struct supernet_info *myinfo,struct iguana_info *co
unspents[0] = ((uint64_t)bu->hdrsi << 32) | bu->unspentind;
unspents[1] = bu->value;
sum += bu->value;
printf("ADD unspent, mark spent\n");
basilisk_addspend(myinfo,coin->symbol,bu->txid,bu->vout,1);
unspents++;
numunspents++;

Loading…
Cancel
Save