aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-01-10 15:25:29 +0000
committerxiphon <xiphon@protonmail.com>2020-01-14 22:56:23 +0000
commitffe7165ebfbb805b3bba57de8cb3f14d0b3411a0 (patch)
treea214cae4b1ef2736fd35b5d641f39cce741d6baa /src/rpc
parentMerge pull request #6253 (diff)
downloadmonero-ffe7165ebfbb805b3bba57de8cb3f14d0b3411a0.tar.xz
wallet: reroll fake outs selection on local tx_sanity_check failure
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index dc93e7023..fe4f919ce 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -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";