Merge pull request #322
f6da25a
Fix standard address deserialization (moneromooo-monero)
This commit is contained in:
commit
f43f0660aa
1 changed files with 17 additions and 7 deletions
|
@ -205,15 +205,25 @@ namespace cryptonote {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (has_payment_id)
|
||||||
|
{
|
||||||
integrated_address iadr;
|
integrated_address iadr;
|
||||||
if (!::serialization::parse_binary(data, iadr))
|
if (!::serialization::parse_binary(data, iadr))
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Account public address keys can't be parsed");
|
LOG_PRINT_L1("Account public address keys can't be parsed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
adr = iadr.adr;
|
adr = iadr.adr;
|
||||||
payment_id = iadr.payment_id;
|
payment_id = iadr.payment_id;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!::serialization::parse_binary(data, adr))
|
||||||
|
{
|
||||||
|
LOG_PRINT_L1("Account public address keys can't be parsed");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!crypto::check_key(adr.m_spend_public_key) || !crypto::check_key(adr.m_view_public_key))
|
if (!crypto::check_key(adr.m_spend_public_key) || !crypto::check_key(adr.m_view_public_key))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue