mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 03:55:53 +00:00
Change websocket to use beast::lexicalCast<>
This commit is contained in:
@@ -598,7 +598,7 @@ void server<endpoint>::connection<connection_type>::handle_read_request(
|
|||||||
std::string reply =
|
std::string reply =
|
||||||
"<?xml version=\"1.0\"?><cross-domain-policy>"
|
"<?xml version=\"1.0\"?><cross-domain-policy>"
|
||||||
"<allow-access-from domain=\"*\" to-ports=\"";
|
"<allow-access-from domain=\"*\" to-ports=\"";
|
||||||
reply += boost::lexical_cast<std::string>(m_connection.get_raw_socket().local_endpoint().port());
|
reply += beast::lexicalCastThrow <std::string>(m_connection.get_raw_socket().local_endpoint().port());
|
||||||
reply += "\"/></cross-domain-policy>";
|
reply += "\"/></cross-domain-policy>";
|
||||||
reply.append("\0", 1);
|
reply.append("\0", 1);
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ ProofOfWork ProofOfWorkFactory::getProof ()
|
|||||||
|
|
||||||
POWResult ProofOfWorkFactory::checkProof (const std::string& token, uint256 const& solution)
|
POWResult ProofOfWorkFactory::checkProof (const std::string& token, uint256 const& solution)
|
||||||
{
|
{
|
||||||
|
// VFALCO COmmented this out because Dave said it wasn't used
|
||||||
|
// and also we dont have the lexicalCast from a vector of strings to a time_t
|
||||||
|
|
||||||
|
#if 0
|
||||||
// challenge - target - iterations - time - validator
|
// challenge - target - iterations - time - validator
|
||||||
|
|
||||||
std::vector<std::string> fields;
|
std::vector<std::string> fields;
|
||||||
@@ -93,7 +97,7 @@ POWResult ProofOfWorkFactory::checkProof (const std::string& token, uint256 cons
|
|||||||
return powREUSED;
|
return powREUSED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return powOK;
|
return powOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user