diff options
| author | Ross Nicoll <[email protected]> | 2021-08-05 22:21:53 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-05 22:21:53 +0100 |
| commit | 5db95e5a5f48eb76601946ea670ee3b2a33e2a4b (patch) | |
| tree | 601ebf9d1837710dffdb5ff9b96e8acd903a4a9a /src/primitives | |
| parent | Merge pull request #2415 from rnicoll/1.14.4-rbf-fee (diff) | |
| parent | [fees] Express policies in COIN instead of Koinu (diff) | |
| download | discoin-5db95e5a5f48eb76601946ea670ee3b2a33e2a4b.tar.xz discoin-5db95e5a5f48eb76601946ea670ee3b2a33e2a4b.zip | |
Merge pull request #2348 from patricklodder/1.14-cfg-dust-limit
[fees] introduce configurable hard dust limit
Diffstat (limited to 'src/primitives')
| -rw-r--r-- | src/primitives/transaction.h | 4 |
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 |