wallet: reroll fake outs selection on local tx_sanity_check failure

This commit is contained in:
xiphon
2020-01-10 15:25:29 +00:00
parent 3c01bffd0c
commit ffe7165ebf
5 changed files with 59 additions and 12 deletions

View File

@@ -1087,7 +1087,7 @@ namespace cryptonote
return true;
}
if (req.do_sanity_checks && !cryptonote::tx_sanity_check(m_core.get_blockchain_storage(), tx_blob))
if (req.do_sanity_checks && !cryptonote::tx_sanity_check(tx_blob, m_core.get_blockchain_storage().get_num_mature_outputs(0)))
{
res.status = "Failed";
res.reason = "Sanity check failed";