Fix rct::h2d call (upstream change) (#252)

This commit is contained in:
Lee *!* Clagett
2026-05-13 12:13:04 -04:00
committed by Lee *!* Clagett
parent 21dd4ea938
commit a3abb637af
+5 -1
View File
@@ -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;
}