diff options
| author | Ross Nicoll <[email protected]> | 2019-11-03 09:53:27 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2019-11-03 09:55:30 +0000 |
| commit | 093f1abf40ebd983f61321cc50ff850431262a1f (patch) | |
| tree | 910e59ce198e04c1d77e9e84e426bdb8f6eaf72b /src/primitives | |
| parent | Drop use of smart fees (diff) | |
| download | discoin-093f1abf40ebd983f61321cc50ff850431262a1f.tar.xz discoin-093f1abf40ebd983f61321cc50ff850431262a1f.zip | |
Correct dust and change
Correct dust threshold, which is never less than 1 DOGE.
Correct minimum change, which is 1 DOGE.
Diffstat (limited to 'src/primitives')
| -rw-r--r-- | src/primitives/transaction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index ceb8f6ace..6e275a93d 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -190,7 +190,8 @@ public: nSize += (32 + 4 + 1 + 107 + 4); // the 148 mentioned above } - return 3 * minRelayTxFee.GetFee(nSize); + // Dogecoin: Anything below 1 DOGE is always dust + return std::max(COIN, 3 * minRelayTxFee.GetFee(nSize)); } bool IsDust(const CFeeRate &minRelayTxFee) const |