diff options
| author | Max K <[email protected]> | 2019-11-03 19:42:47 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-03 19:42:47 +0100 |
| commit | d5d4388a16785ecadfdbb37005b694e6dbdfba75 (patch) | |
| tree | 5858563be4766088ece14d9d1f2e1b509c1e2dea /src/primitives | |
| parent | Merge pull request #1601 from langerhans/1.14-supermajority-rpc (diff) | |
| parent | Fix dust threshold at 1 DOGE (diff) | |
| download | discoin-d5d4388a16785ecadfdbb37005b694e6dbdfba75.tar.xz discoin-d5d4388a16785ecadfdbb37005b694e6dbdfba75.zip | |
Merge pull request #1615 from rnicoll/1.14/dust-fees
Correct dust and change
Diffstat (limited to 'src/primitives')
| -rw-r--r-- | src/primitives/transaction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index ceb8f6ace..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; @@ -191,6 +192,10 @@ public: } return 3 * minRelayTxFee.GetFee(nSize); + */ + + // Dogecoin: Anything below 1 DOGE is always dust + return COIN; } bool IsDust(const CFeeRate &minRelayTxFee) const |