Merge pull request #5487

df83ed7 consensus: from v12, enforce >= 2 outputs (moneromooo-monero)
This commit is contained in:
luigi1111 2019-08-14 15:26:55 -05:00
commit 2258551ef9
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
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";