removed test CCerror code

This commit is contained in:
dimxy
2019-01-09 18:04:15 +05:00
parent 6e353a59a4
commit 884c58e3cf

View File

@@ -6952,20 +6952,12 @@ UniValue tokenlist(const UniValue& params, bool fHelp)
UniValue tokeninfo(const UniValue& params, bool fHelp)
{
#ifdef TESTMODE
std::cerr << "is CCerror clear? CCerror=" << CCerror << std::endl;
#endif
uint256 tokenid;
if ( fHelp || params.size() != 1 )
throw runtime_error("tokeninfo tokenid\n");
if ( ensure_CCrequirements() < 0 )
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
tokenid = Parseuint256((char *)params[0].get_str().c_str());
#ifdef TESTMODE
CCerror = "test error";
#endif
return(AssetInfo(tokenid));
}