tx_sanity_check: relax uniqueness check a bit

It triggers easily on testnet
This commit is contained in:
moneromooo-monero 2019-04-23 21:56:48 +00:00
parent b386ae5725
commit 4be18df32a
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -34,7 +34,7 @@
#include "tx_sanity_check.h" #include "tx_sanity_check.h"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "txsanity" #define MONERO_DEFAULT_LOG_CATEGORY "verify"
namespace cryptonote namespace cryptonote
{ {
@ -80,7 +80,7 @@ bool tx_sanity_check(Blockchain &blockchain, const cryptonote::blobdata &tx_blob
if (n_available < 10000) if (n_available < 10000)
return true; return true;
if (rct_indices.size() < n_indices * 9 / 10) if (rct_indices.size() < n_indices * 8 / 10)
{ {
MERROR("unique indices is only " << rct_indices.size() << "/" << n_indices); MERROR("unique indices is only " << rct_indices.size() << "/" << n_indices);
return false; return false;