mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Fix default param using std::function
This commit is contained in:
@@ -66,7 +66,7 @@ extern void callRPC (
|
||||
const std::string& strUsername, const std::string& strPassword,
|
||||
const std::string& strPath, const std::string& strMethod,
|
||||
const Json::Value& jvParams, const bool bSSL,
|
||||
FUNCTION_TYPE<void (const Json::Value& jvInput)> callbackFuncP = 0);
|
||||
FUNCTION_TYPE<void (const Json::Value& jvInput)> callbackFuncP = FUNCTION_TYPE<void (const Json::Value& jvInput)> ());
|
||||
#endif
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -1285,6 +1285,10 @@ void PeerImp::recvHaveTxSet (protocol::TMHaveTransactionSet& packet)
|
||||
}
|
||||
|
||||
uint256 hash;
|
||||
|
||||
// VFALCO TODO There should be no use of memcpy() throughout the program.
|
||||
// TODO Clean up this magic number
|
||||
//
|
||||
memcpy (hash.begin (), packet.hash ().data (), 32);
|
||||
|
||||
if (packet.status () == protocol::tsHAVE)
|
||||
|
||||
Reference in New Issue
Block a user