Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
40f34206f8
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_ramchain.c
  3. 3
      iguana/iguana_spendvectors.c
  4. 1
      iguana/iguana_volatiles.c

2
iguana/iguana777.c

@ -536,9 +536,7 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int
coin->spendvectorsaved = (uint32_t)time(NULL);
coin->spendvalidated = 0;
printf("%s UTXOGEN spendvectorsaved <- %u\n",coin->symbol,coin->spendvectorsaved);
#ifdef ENABLE_UTXOADDR
iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize);
#endif
}
else
{

2
iguana/iguana_ramchain.c

@ -209,7 +209,7 @@ uint32_t iguana_ramchain_addtxid(struct iguana_info *coin,RAMCHAIN_FUNC,bits256
}
if ( ptr->hh.itemind != txidind )
{
printf("iguana_ramchain_addtxid warning: adding txidind.%u vs %u\n",txidind,ptr->hh.itemind);
printf("iguana_ramchain_addtxid %d warning: adding txidind.%u vs %u\n",ramchain->height,txidind,ptr->hh.itemind);
}
}
return(txidind);

3
iguana/iguana_spendvectors.c

@ -509,7 +509,8 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
{
utxoaddr->RTcredits += u->value;
coin->RTcredits += u->value;
}
printf("[%d] u%u += %.8f\n",bp->hdrsi,u->pkind,dstr(u->value));
} else printf("cant find utxoaddr\n");
}
} else unspentind += T[txidind].numvouts;
for (k=0; k<T[txidind].numvins && errs==0; k++,spendind++)

1
iguana/iguana_volatiles.c

@ -83,6 +83,7 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t
{
utxoaddr->RTdebits += spent_value;
coin->RTdebits += spent_value;
printf("from.%d [%d] u%u -= %.8f\n",fromheight,spent_hdrsi,spent_pkind,dstr(spent_value));
}
return(0);
}

Loading…
Cancel
Save