aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-02-02 21:25:30 +0200
committerRiccardo Spagni <ric@spagni.net>2017-02-02 21:25:30 +0200
commitc3eff820be039e4ab09ff762ff61411690ceb7f4 (patch)
treee690bee500620bfaae1768f2e38722eff2edd77c
parentMerge pull request #1639 (diff)
parentcore: set missing verifivation_failed flag when rejecting a tx (diff)
downloadmonero-c3eff820be039e4ab09ff762ff61411690ceb7f4.tar.xz
Merge pull request #1642
3ae79a59 core: set missing verifivation_failed flag when rejecting a tx (moneromooo-monero) ea6549e9 core_tests: decrease trace level from trace to debug (moneromooo-monero)
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp1
-rw-r--r--tests/core_tests/chaingen_main.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index ef473cfba..5ddedd6fd 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -531,6 +531,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)
diff --git a/tests/core_tests/chaingen_main.cpp b/tests/core_tests/chaingen_main.cpp
index 557e3f07c..5851d9c6a 100644
--- a/tests/core_tests/chaingen_main.cpp
+++ b/tests/core_tests/chaingen_main.cpp
@@ -51,7 +51,7 @@ int main(int argc, char* argv[])
//set up logging options
mlog_configure(mlog_get_default_log_path("core_tests.log"), true);
- mlog_set_log_level(3);
+ mlog_set_log_level(2);
po::options_description desc_options("Allowed options");
command_line::add_arg(desc_options, command_line::arg_help);