aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-02-01 15:20:13 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-14 14:44:03 +0000
commit041af9545f9422b75a9015636d44665b129d7d22 (patch)
tree6c3b1d2c10c4cf472b71f1f13f8353b3476e075f
parentsimplewallet: tell the user to complain to the recipient (diff)
downloadmonero-041af9545f9422b75a9015636d44665b129d7d22.tar.xz
cryptonote: Fix enum check in expand_transaction_2
This was noticed because GCC warned about using an enum value in a boolean context.
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 005d3c690..7b1f750db 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -2494,7 +2494,7 @@ bool Blockchain::expand_transaction_2(transaction &tx, const crypto::hash &tx_pr
for (size_t n = 0; n < tx.vin.size(); ++n)
rv.p.MGs[0].II[n] = rct::ki2rct(boost::get<txin_to_key>(tx.vin[n]).k_image);
}
- else if (rv.type == rct::RCTTypeSimple || rv.type == rct::RCTTypeBulletproof || rct::RCTTypeBulletproof2)
+ else if (rv.type == rct::RCTTypeSimple || rv.type == rct::RCTTypeBulletproof || rv.type == rct::RCTTypeBulletproof2)
{
CHECK_AND_ASSERT_MES(rv.p.MGs.size() == tx.vin.size(), false, "Bad MGs size");
for (size_t n = 0; n < tx.vin.size(); ++n)