aboutsummaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2021-08-17 21:22:56 +0200
committerGitHub <[email protected]>2021-08-17 21:22:56 +0200
commitb8a29b9f59ff4f19a53be6ac80197b42e4dbd97f (patch)
treeb115d23064dce9238d88eb3501661842bac882a6 /src/amount.h
parentMerge pull request #2457 from ReverseControl/1.14.4-suggested-changes-for-2297 (diff)
parentCreate feelimit.py test (diff)
downloaddiscoin-b8a29b9f59ff4f19a53be6ac80197b42e4dbd97f.tar.xz
discoin-b8a29b9f59ff4f19a53be6ac80197b42e4dbd97f.zip
Merge pull request #2441 from rnicoll/1.14.4-fees-disable-rounding
1.14.4 fees disable rounding
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); }