aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-19 23:30:54 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-19 23:31:38 +0000
commitda3e20ee01be9f92e90480afbb9dbe4935adf143 (patch)
treecc078d56d580092ae438440d2f908bcaba83d5e4 /src
parentMerge pull request #5641 (diff)
downloadmonero-da3e20ee01be9f92e90480afbb9dbe4935adf143.tar.xz
tx_sanity_check: relax the median check a lot
we don't want to prevent bona fide txes, just obvious bad ones
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/tx_sanity_check.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_sanity_check.cpp b/src/cryptonote_core/tx_sanity_check.cpp
index 10198a3d3..36be91f2c 100644
--- a/src/cryptonote_core/tx_sanity_check.cpp
+++ b/src/cryptonote_core/tx_sanity_check.cpp
@@ -88,7 +88,7 @@ bool tx_sanity_check(Blockchain &blockchain, const cryptonote::blobdata &tx_blob
std::vector<uint64_t> offsets(rct_indices.begin(), rct_indices.end());
uint64_t median = epee::misc_utils::median(offsets);
- if (median < n_available * 9 / 10)
+ if (median < n_available * 6 / 10)
{
MERROR("median is " << median << "/" << n_available);
return false;