mypk = pubkey2pk(Mypubkey());

This commit is contained in:
jl777
2019-02-09 22:14:53 -11:00
parent 5cda0241b4
commit d5db98b42c

View File

@@ -920,6 +920,7 @@ UniValue rogue_players(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
UniValue result(UniValue::VOBJ),a(UniValue::VARR); int64_t buyin; uint256 gametxid,txid,hashBlock; CTransaction playertx,tx; int32_t maxplayers,vout,numvouts; std::vector<uint8_t> playerdata; CPubKey roguepk,mypk,pk; char coinaddr[64];
std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> > unspentOutputs;
roguepk = GetUnspendable(cp,0);
mypk = pubkey2pk(Mypubkey());
GetCCaddress(cp,coinaddr,mypk);
fprintf(stderr,"search (%s)\n",coinaddr);
SetCCunspents(unspentOutputs,coinaddr);