From e7489557a6ad2c97338843ee4439e77ecfaacd28 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 14 Jul 2022 21:20:29 +0200 Subject: [PATCH] more checks in core regarding collect_rangeproofs_data_from_tx() --- src/currency_core/blockchain_storage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index b3937c63..50df812a 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -5476,6 +5476,10 @@ bool blockchain_storage::collect_rangeproofs_data_from_tx(std::vector 0, false, "transaction " << get_transaction_hash(tx) << " don't have range_proofs"); + CHECK_AND_ASSERT_MES(proofs_count == 1 || (get_tx_flags(tx) & TX_FLAG_SIGNATURE_MODE_SEPARATE), false, "transaction " << get_transaction_hash(tx) + << " has TX_FLAG_SIGNATURE_MODE_SEPARATE but proofs_count = " << proofs_count); + return false; }