From f077953e02941e8e931a5f7aa870ced3b72a1f1e Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Sat, 13 Feb 2021 01:04:23 -0500 Subject: [PATCH] Fix CLSAG amount decoding --- src/scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.cpp b/src/scanner.cpp index d97fca0..c99d969 100644 --- a/src/scanner.cpp +++ b/src/scanner.cpp @@ -263,7 +263,7 @@ namespace lws rct::key mask = rct::identity(); if (!amount && !(ext & db::coinbase_output) && 1 < tx.version) { - const bool bulletproof2 = (tx.rct_signatures.type == rct::RCTTypeBulletproof2); + const bool bulletproof2 = (rct::RCTTypeBulletproof2 <= tx.rct_signatures.type); const auto decrypted = lws::decode_amount( tx.rct_signatures.outPk.at(index).mask, tx.rct_signatures.ecdhInfo.at(index), derived, index, bulletproof2 );