aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-07-01 00:18:40 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-07-01 00:18:40 -0500
commit393c33f86cab69f9877f1ab11cdb1c11cdcd0cd3 (patch)
treead0fb77db17c95cd2c47ae1d01c83ce99a2e8331 /src
parentMerge pull request #5668 (diff)
parenttx_sanity_check: relax the median check a lot (diff)
downloadmonero-393c33f86cab69f9877f1ab11cdb1c11cdcd0cd3.tar.xz
Merge pull request #5675
da3e20e tx_sanity_check: relax the median check a lot (moneromooo-monero)
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;