Fix ringct coinbase detection via official api

This commit is contained in:
Lee *!* Clagett
2025-09-04 16:46:28 -04:00
parent d0aacbc1f5
commit cd7bc2968b
+2
View File
@@ -374,6 +374,8 @@ namespace lwsf { namespace internal { namespace rpc
ringct_triplet rct{};
if (!epee::from_hex::to_buffer(epee::as_mut_byte_span(rct), source))
WIRE_DLOG_THROW(wire::error::schema::binary, "Invalid hex for ringct");
if (rct.amount == rct::key{} && rct.mask == rct::identity())
return ringct{rct::identity(), ringct::format::unencrypted};
return ringct{rct.mask, ringct::format::encrypted};
}