diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-19 23:30:54 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-19 23:31:38 +0000 |
commit | da3e20ee01be9f92e90480afbb9dbe4935adf143 (patch) | |
tree | cc078d56d580092ae438440d2f908bcaba83d5e4 /src/cryptonote_core | |
parent | Merge pull request #5641 (diff) | |
download | monero-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/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/tx_sanity_check.cpp | 2 |
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; |