diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index ef75f8e2a..9c212f50a 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -366,7 +366,7 @@ int32_t notarizedtxid_height(char *dest,char *txidstr,int32_t *kmdnotarized_heig { if ( (jsonstr= komodo_issuemethod(userpass,(char *)"getinfo",params,port)) != 0 ) { - printf("(%s)\n",jsonstr); + //printf("(%s)\n",jsonstr); if ( (json= cJSON_Parse(jsonstr)) != 0 ) { if ( (item= jobj(json,(char *)"result")) != 0 ) @@ -381,7 +381,7 @@ int32_t notarizedtxid_height(char *dest,char *txidstr,int32_t *kmdnotarized_heig sprintf(params,"[\"%s\", 1]",txidstr); if ( (jsonstr= komodo_issuemethod(userpass,(char *)"getrawtransaction",params,port)) != 0 ) { - printf("(%s)\n",jsonstr); + //printf("(%s)\n",jsonstr); if ( (json= cJSON_Parse(jsonstr)) != 0 ) { if ( (item= jobj(json,(char *)"result")) != 0 ) diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp index b6208ba47..e23a0bf1a 100644 --- a/src/rpcmisc.cpp +++ b/src/rpcmisc.cpp @@ -99,8 +99,10 @@ Value getinfo(const Array& params, bool fHelp) obj.push_back(Pair("notarizedhash", notarized_hash.ToString())); obj.push_back(Pair("notarizedtxid", notarized_desttxid.ToString())); txid_height = notarizedtxid_height(ASSETCHAINS_SYMBOL[0] != 0 ? (char *)"KMD" : (char *)"BTC",(char *)notarized_desttxid.ToString().c_str(),&kmdnotarized_height); - obj.push_back(Pair("notarizedtxid_height", txid_height)); - obj.push_back(Pair("kmdnotarized_height", kmdnotarized_height)); + if ( txid_height > 0 ) + obj.push_back(Pair("notarizedtxid_height", txid_height)); + else obj.push_back(Pair("notarizedtxid_height", "mempool")); + obj.push_back(Pair(ASSETCHAINS_SYMBOL[0] == 0 ? "BTCnotarized_height" :"KMDnotarized_height", kmdnotarized_height)); obj.push_back(Pair("notarized_confirms", txid_height < kmdnotarized_height ? (kmdnotarized_height - txid_height) : 0)); #ifdef ENABLE_WALLET if (pwalletMain) {