Test
This commit is contained in:
@@ -67,14 +67,13 @@ bool FaucetExactAmounts(Eval* eval,const CTransaction &tx,int32_t minage,uint64_
|
|||||||
if ( IsFaucetInput(tx.vin[i].scriptSig) != 0 )
|
if ( IsFaucetInput(tx.vin[i].scriptSig) != 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"vini.%d check mempool\n",i);
|
fprintf(stderr,"vini.%d check mempool\n",i);
|
||||||
if ( mempool.lookup(tx.vin[i].prevout.hash,vinTx) != 0 )
|
if ( eval->GetTxUnconfirmed(tx.vin[i].prevout.hash,vinTx,hashBlock) == 0 )
|
||||||
//if ( eval->GetTxUnconfirmed(tx.vin[i].prevout.hash,vinTx,hashBlock) == 0 )
|
|
||||||
return eval->Invalid("cant faucet mempool tx");
|
return eval->Invalid("cant faucet mempool tx");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(stderr,"vini.%d check hash and vout\n",i);
|
fprintf(stderr,"vini.%d check hash and vout\n",i);
|
||||||
//if ( hashBlock == zerohash )
|
if ( hashBlock == zerohash )
|
||||||
// return eval->Invalid("cant faucet from mempool");
|
return eval->Invalid("cant faucet from mempool");
|
||||||
if ( (assetoshis= IsFaucetvout(vinTx,tx.vin[i].prevout.n)) != 0 )
|
if ( (assetoshis= IsFaucetvout(vinTx,tx.vin[i].prevout.n)) != 0 )
|
||||||
inputs += assetoshis;
|
inputs += assetoshis;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1614,6 +1614,7 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return(false);
|
||||||
fprintf(stderr,"check disk\n");
|
fprintf(stderr,"check disk\n");
|
||||||
|
|
||||||
if (fTxIndex) {
|
if (fTxIndex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user