aboutsummaryrefslogtreecommitdiff
path: root/src/primitives
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2021-06-27 00:37:10 +0200
committerPatrick Lodder <[email protected]>2021-08-05 18:24:17 +0200
commit4c46af04830cec3da6ecfbf677ef3d826a5892e6 (patch)
tree8e2c6490458c57ff690788195b298cc4edd07891 /src/primitives
parentMerge pull request #2415 from rnicoll/1.14.4-rbf-fee (diff)
downloadarchived-discoin-4c46af04830cec3da6ecfbf677ef3d826a5892e6.tar.xz
archived-discoin-4c46af04830cec3da6ecfbf677ef3d826a5892e6.zip
[fees] introduce configurable hard dust limit
Co-authored-by: Ross Nicoll <[email protected]>
Diffstat (limited to 'src/primitives')
-rw-r--r--src/primitives/transaction.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index 16a92bf2e..0d0ceda54 100644
--- a/src/primitives/transaction.h
+++ b/src/primitives/transaction.h
@@ -15,6 +15,8 @@ static const int SERIALIZE_TRANSACTION_NO_WITNESS = 0x40000000;
static const int WITNESS_SCALE_FACTOR = 4;
+extern unsigned int nDustLimit;
+
/** An outpoint - a combination of a transaction hash and an index n into its vout */
class COutPoint
{
@@ -195,7 +197,7 @@ public:
*/
// Dogecoin: Anything below 1 DOGE is always dust
- return COIN;
+ return nDustLimit;
}
bool IsDust(const CFeeRate &minRelayTxFeeRate) const