aboutsummaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-08-09 23:27:38 +0100
committerRoss Nicoll <[email protected]>2021-08-17 08:50:42 +0100
commitce6e3d8137128e99b2f7f99f79327b8b440df0a2 (patch)
treeefcc20108c599f774d5df680eed7c91e7476b14b /src/amount.h
parentMerge pull request #2457 from ReverseControl/1.14.4-suggested-changes-for-2297 (diff)
downloaddiscoin-ce6e3d8137128e99b2f7f99f79327b8b440df0a2.tar.xz
discoin-ce6e3d8137128e99b2f7f99f79327b8b440df0a2.zip
Remove relay-only rounding
Remove rounding of transaction sizes when calculating fee minimums for relaying, to simplify fee logic.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/amount.h b/src/amount.h
index e6e503905..02d61fc9b 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -46,10 +46,14 @@ public:
CFeeRate(const CAmount& nFeePaid, size_t nBytes);
CFeeRate(const CFeeRate& other) { nSatoshisPerK = other.nSatoshisPerK; }
/**
- * Return the fee in satoshis for the given size in bytes.
+ * Return the wallet fee in koinus for the given size in bytes.
*/
CAmount GetFee(size_t nBytes) const;
/**
+ * Return the relay fee in koinus for the given size in bytes.
+ */
+ CAmount GetRelayFee(size_t nBytes) const;
+ /**
* Return the fee in satoshis for a size of 1000 bytes
*/
CAmount GetFeePerK() const { return GetFee(1000); }