aboutsummaryrefslogtreecommitdiff
path: root/src/amount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/amount.cpp')
-rw-r--r--src/amount.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amount.cpp b/src/amount.cpp
index a5f6bc3cd..d6a7d8c30 100644
--- a/src/amount.cpp
+++ b/src/amount.cpp
@@ -25,6 +25,11 @@ CAmount CFeeRate::GetFee(size_t nBytes_) const
assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
int64_t nSize = int64_t(nBytes_);
+ // Dogecoin: Round up to the nearest 1000 bytes so we get round tx fees
+ if (nSize % 1000 > 0) {
+ nSize = nSize + 1000 - (nSize % 1000);
+ }
+
CAmount nFee = nSatoshisPerK * nSize / 1000;
if (nFee == 0 && nSize != 0) {