Merge pull request #862
5dc09f2wallet_rpc_server: fix some string values being returned between <> (moneromooo-monero)f8213c0Require 64/16 characters for payment ids (moneromooo-monero)
This commit is contained in:
@@ -139,9 +139,11 @@ namespace string_tools
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
template<class CharT>
|
||||
bool parse_hexstr_to_binbuff(const std::basic_string<CharT>& s, std::basic_string<CharT>& res)
|
||||
bool parse_hexstr_to_binbuff(const std::basic_string<CharT>& s, std::basic_string<CharT>& res, bool allow_partial_byte = false)
|
||||
{
|
||||
res.clear();
|
||||
if (!allow_partial_byte && (s.size() & 1))
|
||||
return false;
|
||||
try
|
||||
{
|
||||
long v = 0;
|
||||
|
||||
Reference in New Issue
Block a user