aboutsummaryrefslogtreecommitdiff
path: root/src/policy/policy.h
diff options
context:
space:
mode:
authorAlex Morcos <[email protected]>2016-12-13 16:19:17 -0500
committerAlex Morcos <[email protected]>2017-01-16 08:40:40 -0500
commiteb30d1a5b215c6dd3763d7f7948f2dd8cb61f6bf (patch)
tree4145415de105b56023c630c9da4e421971793981 /src/policy/policy.h
parentIntroduce -incrementalrelayfee (diff)
downloaddiscoin-eb30d1a5b215c6dd3763d7f7948f2dd8cb61f6bf.tar.xz
discoin-eb30d1a5b215c6dd3763d7f7948f2dd8cb61f6bf.zip
Introduce -dustrelayfee
Diffstat (limited to 'src/policy/policy.h')
-rw-r--r--src/policy/policy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index 039122a59..9b1323ac2 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -40,6 +40,12 @@ static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEMS = 100;
static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEM_SIZE = 80;
/** The maximum size of a standard witnessScript */
static const unsigned int MAX_STANDARD_P2WSH_SCRIPT_SIZE = 3600;
+/** Min feerate for defining dust. Historically this has been the same as the
+ * minRelayTxFee, however changing the dust limit changes which transactions are
+ * standard and should be done with care and ideally rarely. It makes sense to
+ * only increase the dust limit after prior releases were already not creating
+ * outputs below the new threshold */
+static const unsigned int DUST_RELAY_TX_FEE = 1000;
/**
* Standard script verification flags that standard transactions will comply
* with. However scripts violating these flags may still be present in valid
@@ -88,6 +94,7 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs)
bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs);
extern CFeeRate incrementalRelayFee;
+extern CFeeRate dustRelayFee;
extern unsigned int nBytesPerSigOp;
/** Compute the virtual transaction size (weight reinterpreted as bytes). */