mirror of
https://codeberg.org/wownero/lwsf-wow.git
synced 2026-10-17 05:41:30 +02:00
Fix ringct coinbase detection via official api
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user