diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-28 09:30:11 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-28 09:43:41 +0000 |
| commit | 3ae79a59e445d67827cd3d34ec1cfc476ded36b3 (patch) | |
| tree | d22728b1990d89c7d9a8e22fcfa42a06928c5f06 | |
| parent | ea6549e9daf5b42dcb63c5668444cd84b3b1fe4d (diff) | |
| download | monzero-core-3ae79a59e445d67827cd3d34ec1cfc476ded36b3.tar.gz monzero-core-3ae79a59e445d67827cd3d34ec1cfc476ded36b3.tar.xz monzero-core-3ae79a59e445d67827cd3d34ec1cfc476ded36b3.zip | |
core: set missing verifivation_failed flag when rejecting a tx
This fixes two core rct tests
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 22d473b35..2d5ccc559 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) |
