+prot
This commit is contained in:
@@ -350,6 +350,7 @@ int64_t CCutxovalue(char *coinaddr,uint256 utxotxid,int32_t utxovout)
|
|||||||
int32_t CCgettxout(uint256 txid,int32_t vout,int32_t mempoolflag,int32_t lockflag)
|
int32_t CCgettxout(uint256 txid,int32_t vout,int32_t mempoolflag,int32_t lockflag)
|
||||||
{
|
{
|
||||||
CCoins coins;
|
CCoins coins;
|
||||||
|
fprintf(stderr,"CCgettxoud %s/v%d\n",txid.GetHex().c_str(),vout);
|
||||||
if ( mempoolflag != 0 )
|
if ( mempoolflag != 0 )
|
||||||
{
|
{
|
||||||
if ( lockflag != 0 )
|
if ( lockflag != 0 )
|
||||||
@@ -358,7 +359,7 @@ int32_t CCgettxout(uint256 txid,int32_t vout,int32_t mempoolflag,int32_t lockfla
|
|||||||
CCoinsViewMemPool view(pcoinsTip, mempool);
|
CCoinsViewMemPool view(pcoinsTip, mempool);
|
||||||
if (!view.GetCoins(txid, coins))
|
if (!view.GetCoins(txid, coins))
|
||||||
return(-1);
|
return(-1);
|
||||||
if ( myIsutxo_spentinmempool(ignoretxid,ignorevin,txid,vout) != 0 )
|
else if ( myIsutxo_spentinmempool(ignoretxid,ignorevin,txid,vout) != 0 )
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -366,7 +367,7 @@ int32_t CCgettxout(uint256 txid,int32_t vout,int32_t mempoolflag,int32_t lockfla
|
|||||||
CCoinsViewMemPool view(pcoinsTip, mempool);
|
CCoinsViewMemPool view(pcoinsTip, mempool);
|
||||||
if (!view.GetCoins(txid, coins))
|
if (!view.GetCoins(txid, coins))
|
||||||
return(-1);
|
return(-1);
|
||||||
if ( myIsutxo_spentinmempool(ignoretxid,ignorevin,txid,vout) != 0 )
|
else if ( myIsutxo_spentinmempool(ignoretxid,ignorevin,txid,vout) != 0 )
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -565,7 +565,7 @@ int32_t rogue_findbaton(struct CCcontract_info *cp,uint256 &playertxid,char **ke
|
|||||||
return(-5);
|
return(-5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//fprintf(stderr,"set baton %s\n",txid.GetHex().c_str());
|
fprintf(stderr,"set baton %s\n",txid.GetHex().c_str());
|
||||||
batontxid = txid;
|
batontxid = txid;
|
||||||
batonvout = 0; // not vini
|
batonvout = 0; // not vini
|
||||||
// how to detect timeout, bailedout, highlander
|
// how to detect timeout, bailedout, highlander
|
||||||
@@ -578,7 +578,7 @@ int32_t rogue_findbaton(struct CCcontract_info *cp,uint256 &playertxid,char **ke
|
|||||||
return(-4);
|
return(-4);
|
||||||
else batonht = pindex->GetHeight();
|
else batonht = pindex->GetHeight();
|
||||||
batonvalue = batontx.vout[0].nValue;
|
batonvalue = batontx.vout[0].nValue;
|
||||||
//printf("batonht.%d keystrokes[%d]\n",batonht,numkeys);
|
printf("batonht.%d keystrokes[%d]\n",batonht,numkeys);
|
||||||
return(0);
|
return(0);
|
||||||
} else fprintf(stderr,"couldnt find baton\n");
|
} else fprintf(stderr,"couldnt find baton\n");
|
||||||
} else fprintf(stderr,"error with playerdata\n");
|
} else fprintf(stderr,"error with playerdata\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user