aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-03-27 12:28:28 -0700
committerAlexander Blair <snipa@jagtech.io>2020-03-27 12:28:29 -0700
commit8cb005b39c3def6ae8cd70a29825cb62f3b6b346 (patch)
treeb51fd4bd5b5926e798a497135c8388ed393585c8 /src/rpc/core_rpc_server.cpp
parentMerge pull request #6288 (diff)
parentwallet: reroll fake outs selection on local tx_sanity_check failure (diff)
downloadmonero-8cb005b39c3def6ae8cd70a29825cb62f3b6b346.tar.xz
Merge pull request #6289
ffe7165e wallet: reroll fake outs selection on local tx_sanity_check failure (xiphon)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-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 5b79310c6..afe9d3897 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1100,7 +1100,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";