consensus: from v12, enforce >= 2 outputs

This commit is contained in:
moneromooo-monero 2019-04-23 21:56:04 +00:00
parent 475481949a
commit df83ed74e4
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
8 changed files with 27 additions and 0 deletions

View file

@ -343,6 +343,11 @@ namespace rpc
if (!res.error_details.empty()) res.error_details += " and ";
res.error_details = "tx is not ringct";
}
if (tvc.m_too_few_outputs)
{
if (!res.error_details.empty()) res.error_details += " and ";
res.error_details = "too few outputs";
}
if (res.error_details.empty())
{
res.error_details = "an unknown issue was found with the transaction";