This commit is contained in:
@@ -1052,11 +1052,12 @@ UniValue rogue_games(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
|||||||
GetCCaddress1of2(cp,coinaddr,roguepk,mypk);
|
GetCCaddress1of2(cp,coinaddr,roguepk,mypk);
|
||||||
SetCCunspents(unspentOutputs,coinaddr);
|
SetCCunspents(unspentOutputs,coinaddr);
|
||||||
rogue_univalue(result,"games",-1,-1);
|
rogue_univalue(result,"games",-1,-1);
|
||||||
|
fprintf(stderr,"rogue_games\n");
|
||||||
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
for (std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++)
|
||||||
{
|
{
|
||||||
txid = it->first.txhash;
|
txid = it->first.txhash;
|
||||||
vout = (int32_t)it->first.index;
|
vout = (int32_t)it->first.index;
|
||||||
//char str[65]; fprintf(stderr,"%s check %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN);
|
char str[65]; fprintf(stderr,"%s check %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN);
|
||||||
if ( vout == 0 )
|
if ( vout == 0 )
|
||||||
{
|
{
|
||||||
a.push_back(txid.GetHex());
|
a.push_back(txid.GetHex());
|
||||||
|
|||||||
Reference in New Issue
Block a user