From 3ae79a59e445d67827cd3d34ec1cfc476ded36b3 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 28 Jan 2017 09:30:11 +0000 Subject: [PATCH] core: set missing verifivation_failed flag when rejecting a tx This fixes two core rct tests --- src/cryptonote_core/cryptonote_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 22d473b3..2d5ccc55 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -532,6 +532,7 @@ namespace cryptonote if (rv.outPk.size() != tx.vout.size()) { LOG_PRINT_L1("WRONG TRANSACTION BLOB, Bad outPk size in tx " << tx_hash << ", rejected"); + tvc.m_verifivation_failed = true; return false; } for (size_t n = 0; n < tx.rct_signatures.outPk.size(); ++n)