From bb7b059d70037c625e05988103540c304a972790 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 19 Jun 2019 23:30:54 +0000 Subject: [PATCH] tx_sanity_check: relax the median check a lot we don't want to prevent bona fide txes, just obvious bad ones --- src/cryptonote_core/tx_sanity_check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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;