mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-02 09:54:29 +00:00
dumppubkey json return value must be hexstr
This commit is contained in:
parent
ca1eb9f3c2
commit
fd404d0927
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user