From cd7bc2968b83faa95da054d044de47a66b7ecf0d Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Thu, 4 Sep 2025 16:46:28 -0400 Subject: [PATCH] Fix ringct coinbase detection via official api --- src/rpc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc.cpp b/src/rpc.cpp index d70d2ff..e6918c9 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -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}; }