mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
improve tx_sanity_check clarification
This commit is contained in:
parent
fd3ff74164
commit
7a3e458881
@ -82,7 +82,7 @@ bool tx_sanity_check(Blockchain &blockchain, const cryptonote::blobdata &tx_blob
|
|||||||
|
|
||||||
if (rct_indices.size() < n_indices * 8 / 10)
|
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;
|
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);
|
uint64_t median = epee::misc_utils::median(offsets);
|
||||||
if (median < n_available * 6 / 10)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user