mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
tx_sanity_check: relax the median check a lot
we don't want to prevent bona fide txes, just obvious bad ones
This commit is contained in:
parent
6335509727
commit
da3e20ee01
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
std::vector<uint64_t> offsets(rct_indices.begin(), rct_indices.end());
|
||||||
uint64_t median = epee::misc_utils::median(offsets);
|
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);
|
MERROR("median is " << median << "/" << n_available);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue