diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-20 19:14:12 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-20 19:14:12 +0000 |
commit | 7c03349869cdf2f3512a6182ed5bd67e6e7f8085 (patch) | |
tree | 72a26b0ad1038a45bd348d5513da0951c5be4c79 /src | |
parent | tx_pool: use new filling algorithm from v5 only (diff) | |
download | monero-7c03349869cdf2f3512a6182ed5bd67e6e7f8085.tar.xz |
blockchain: lower the relay fee by 2%
This ensures we accept txes with a fee that's slightly too small,
to accomodate blockchain median jitter
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 5f8db45ad..f9a17bcb5 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -2860,7 +2860,7 @@ bool Blockchain::check_fee(size_t blob_size, uint64_t fee) const needed_fee += (blob_size % 1024) ? 1 : 0; needed_fee *= fee_per_kb; - if (fee < needed_fee) + if (fee < needed_fee * 0.98) // keep a little buffer on acceptance { MERROR_VER("transaction fee is not enough: " << print_money(fee) << ", minimum fee: " << print_money(needed_fee)); return false; |