Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c359833122
  1. 16
      iguana/iguana_volatiles.c

16
iguana/iguana_volatiles.c

@ -149,14 +149,18 @@ int32_t iguana_spentflag(struct supernet_info *myinfo,struct iguana_info *coin,i
utxo = iguana_utxofind(coin,spent_hdrsi,spent_unspentind,&RTspentflag,0);
if ( RTspentflag != 0 )
*RTspendp = (amount == 0) ? coin->txfee : amount;
if ( coin->RELAYNODE == 0 && coin->VALIDATENODE == 0 && iguana_unspentind2txid(myinfo,coin,spentheightp,&txid,&vout,spent_hdrsi,spent_unspentind) == 0 && basilisk_addspend(myinfo,coin->symbol,txid,vout,0) != 0 )
memset(&txid,0,sizeof(txid));
if ( coin->RELAYNODE == 0 && coin->VALIDATENODE == 0 )
{
printf("iguana_spentflag found unspentind (%u %d) %s\n",spent_hdrsi,spent_unspentind,bits256_str(str,txid));
(*RTspendp) += RTspend;
return(-1);
if ( iguana_unspentind2txid(myinfo,coin,spentheightp,&txid,&vout,spent_hdrsi,spent_unspentind) == 0 && basilisk_addspend(myinfo,coin->symbol,txid,vout,0) != 0 )
{
printf("iguana_spentflag found unspentind (%u %d) %s\n",spent_hdrsi,spent_unspentind,bits256_str(str,txid));
(*RTspendp) += RTspend;
return(-1);
}
else if ( bits256_nonz(txid) != 0 )
printf("iguana_spentflag %s not in mempool\n",bits256_str(str,txid));
}
else if ( bits256_nonz(txid) != 0 )
printf("iguana_spentflag %s not in mempool\n",bits256_str(str,txid));
if ( utxo.spentflag != 0 && utxo.fromheight == 0 )
{
printf("illegal unspentind.%u vs %u hdrs.%d zero fromheight?\n",spent_unspentind,numunspents,spent_hdrsi);

Loading…
Cancel
Save