diff options
| author | Ross Nicoll <[email protected]> | 2019-11-03 17:25:06 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2019-11-03 17:25:06 +0000 |
| commit | 388fb79a3a78eae092c57e04c5a816697e14997d (patch) | |
| tree | 17126152a13b8e11049292b30981093160985408 /src/primitives/transaction.h | |
| parent | Correct dust and change (diff) | |
| download | discoin-388fb79a3a78eae092c57e04c5a816697e14997d.tar.xz discoin-388fb79a3a78eae092c57e04c5a816697e14997d.zip | |
Fix dust threshold at 1 DOGE
Diffstat (limited to 'src/primitives/transaction.h')
| -rw-r--r-- | src/primitives/transaction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 6e275a93d..5d9869dcb 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -178,6 +178,7 @@ public: if (scriptPubKey.IsUnspendable()) return 0; + /* size_t nSize = GetSerializeSize(*this, SER_DISK, 0); int witnessversion = 0; std::vector<unsigned char> witnessprogram; @@ -190,8 +191,11 @@ 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)); + return COIN; } bool IsDust(const CFeeRate &minRelayTxFee) const |