dumppubkey json return value must be hexstr

This commit is contained in:
Miguel Freitas 2013-12-08 18:24:25 -02:00
parent ca1eb9f3c2
commit fd404d0927
3 changed files with 4 additions and 2 deletions

View File

@ -3494,6 +3494,7 @@ void SHA256Transform(void* pstate, void* pinput, const void* pinit)
// between calls, but periodically or if nNonce is 0xffff0000 or above,
// the block is rebuilt and nNonce starts over at zero.
//
/*
unsigned int static ScanHash_CryptoPP(char* pmidstate, char* pdata, char* phash1, char* phash, unsigned int& nHashesDone)
{
unsigned int& nNonce = *(unsigned int*)(pdata + 12 + 4);
@ -3521,6 +3522,7 @@ unsigned int static ScanHash_CryptoPP(char* pmidstate, char* pdata, char* phash1
boost::this_thread::interruption_point();
}
}
*/
// Some explaining would be appreciated
class COrphan

View File

@ -60,7 +60,7 @@ static const int fHaveUPnP = true;
static const int fHaveUPnP = false;
#endif
/** The maximum size for spam messages */
static const unsigned int MAX_SPAM_MSG_SIZE = 140;
static const int MAX_SPAM_MSG_SIZE = 140;
/** The maximum size for username */
static const unsigned int MAX_USERNAME_SIZE = 16;

View File

@ -243,7 +243,7 @@ Value dumppubkey(const Array& params, bool fHelp)
}
string strPubkey = string( reinterpret_cast<const char *>(pubkey.begin()), pubkey.size());
return strPubkey;
return HexStr(strPubkey);
}