aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-23 21:56:04 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-23 22:09:35 +0000
commitdf83ed74e487d6f828164bb9652681801abb439e (patch)
tree485ef5a7d3cc778ba98a4b63aa8272fd86f04561 /src/rpc/core_rpc_server.cpp
parentMerge pull request #5466 (diff)
downloadmonero-df83ed74e487d6f828164bb9652681801abb439e.tar.xz
consensus: from v12, enforce >= 2 outputs
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index c41fb37d8..b6e121c08 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -875,6 +875,8 @@ namespace cryptonote
add_reason(reason, "fee too low");
if ((res.not_rct = tvc.m_not_rct))
add_reason(reason, "tx is not ringct");
+ if ((res.too_few_outputs = tvc.m_too_few_outputs))
+ add_reason(reason, "too few outputs");
const std::string punctuation = reason.empty() ? "" : ": ";
if (tvc.m_verifivation_failed)
{