From 581df62b25bd04dfcbe03bad35d25c1dded79336 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 25 Mar 2019 01:19:00 -1100 Subject: [PATCH] Json fields --- src/cc/gamescc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cc/gamescc.cpp b/src/cc/gamescc.cpp index 101e17d18..02df2eb42 100644 --- a/src/cc/gamescc.cpp +++ b/src/cc/gamescc.cpp @@ -192,7 +192,7 @@ int32_t games_eventsign(std::vector &sig,std::vector payload,C UniValue games_events(uint64_t txfee,struct CCcontract_info *cp,cJSON *params) { - UniValue result(UniValue::VOBJ); std::vector sig,payload; int32_t n; CPubKey mypk; uint256 hash; + UniValue result(UniValue::VOBJ); std::vector sig,payload; int32_t n; CPubKey mypk; char str[67]; if ( params != 0 && (n= cJSON_GetArraySize(params)) == 1 ) { if ( payments_parsehexdata(payload,jitem(params,0),0) == 0 ) @@ -202,6 +202,8 @@ UniValue games_events(uint64_t txfee,struct CCcontract_info *cp,cJSON *params) { komodo_sendmessage(4,8,"events",E_MARSHAL(ss << EVAL_GAMES << 'E' << mypk << sig << payload)); result.push_back(Pair("result","success")); + result.push_back(Pair("pubkey33",pubkey33_str(str,mypk))); + result.push_back(Pair("sig",sig.HexStr())); } else {