diff options
| author | Alex Morcos <[email protected]> | 2016-12-13 16:19:17 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2017-01-16 08:40:40 -0500 |
| commit | eb30d1a5b215c6dd3763d7f7948f2dd8cb61f6bf (patch) | |
| tree | 4145415de105b56023c630c9da4e421971793981 /src/policy/policy.cpp | |
| parent | Introduce -incrementalrelayfee (diff) | |
| download | discoin-eb30d1a5b215c6dd3763d7f7948f2dd8cb61f6bf.tar.xz discoin-eb30d1a5b215c6dd3763d7f7948f2dd8cb61f6bf.zip | |
Introduce -dustrelayfee
Diffstat (limited to 'src/policy/policy.cpp')
| -rw-r--r-- | src/policy/policy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index 4dacd6b54..ec398f662 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -105,7 +105,7 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnes else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) { reason = "bare-multisig"; return false; - } else if (txout.IsDust(::minRelayTxFee)) { + } else if (txout.IsDust(dustRelayFee)) { reason = "dust"; return false; } @@ -207,6 +207,7 @@ bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs) } CFeeRate incrementalRelayFee = CFeeRate(DEFAULT_INCREMENTAL_RELAY_FEE); +CFeeRate dustRelayFee = CFeeRate(DUST_RELAY_TX_FEE); unsigned int nBytesPerSigOp = DEFAULT_BYTES_PER_SIGOP; int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost) |