aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-20 23:29:43 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-20 23:29:43 +0200
commit37eebd9dcf0bedbc87a7abcba96cd59db63c3ad3 (patch)
tree72a26b0ad1038a45bd348d5513da0951c5be4c79 /src/cryptonote_core/blockchain.cpp
parentMerge pull request #1896 (diff)
parentblockchain: lower the relay fee by 2% (diff)
downloadmonero-37eebd9dcf0bedbc87a7abcba96cd59db63c3ad3.tar.xz
Merge pull request #1902
7c033498 blockchain: lower the relay fee by 2% (moneromooo-monero) 266492e9 tx_pool: use new filling algorithm from v5 only (moneromooo-monero) 5b7c6ced wallet2: start using new fee priorities at v5, not 14 days laer (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
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;