aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvicsn <vicsn@users.noreply.github.com>2019-07-15 15:19:14 +0200
committervicsn <vicsn@users.noreply.github.com>2019-07-15 15:19:14 +0200
commit7a3e4588819f8d4667da33f38da2d8f2dfdb0948 (patch)
tree4f67abf9acbab27ca3de10ec18a1067fcd2996f0 /src
parentMerge pull request #5746 (diff)
downloadmonero-7a3e4588819f8d4667da33f38da2d8f2dfdb0948.tar.xz
improve tx_sanity_check clarification
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/tx_sanity_check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/tx_sanity_check.cpp b/src/cryptonote_core/tx_sanity_check.cpp
index 36be91f2c..d974b0d15 100644
--- a/src/cryptonote_core/tx_sanity_check.cpp
+++ b/src/cryptonote_core/tx_sanity_check.cpp
@@ -82,7 +82,7 @@ bool tx_sanity_check(Blockchain &blockchain, const cryptonote::blobdata &tx_blob
if (rct_indices.size() < n_indices * 8 / 10)
{
- MERROR("unique indices is only " << rct_indices.size() << "/" << n_indices);
+ MERROR("amount of unique indices is too low (amount of rct indices is " << rct_indices.size() << ", out of total " << n_indices << "indices.");
return false;
}
@@ -90,7 +90,7 @@ bool tx_sanity_check(Blockchain &blockchain, const cryptonote::blobdata &tx_blob
uint64_t median = epee::misc_utils::median(offsets);
if (median < n_available * 6 / 10)
{
- MERROR("median is " << median << "/" << n_available);
+ MERROR("median offset index is too low (median is " << median << " out of total " << n_available << "offsets). Transactions should contain a higher fraction of recent outputs.");
return false;
}