mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-10-17 07:31:34 +02:00
Fix rct::h2d call (upstream change) (#252)
This commit is contained in:
committed by
Lee *!* Clagett
parent
21dd4ea938
commit
a3abb637af
@@ -56,6 +56,10 @@ boost::optional<std::pair<std::uint64_t, rct::key>> lws::decode_amount(const rct
|
||||
rct::key Ctmp;
|
||||
rct::addKeys2(Ctmp, copy.mask, copy.amount, rct::H);
|
||||
if (rct::equalKeys(commitment, Ctmp))
|
||||
return {{rct::h2d(copy.amount), copy.mask}};
|
||||
{
|
||||
rct::xmr_amount out = 0;
|
||||
if (rct::h2d(out, copy.amount))
|
||||
return {{out, copy.mask}};
|
||||
}
|
||||
return boost::none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user