aboutsummaryrefslogtreecommitdiff
path: root/src/policy/policy.h
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2016-10-14 17:49:05 +0200
committerJorge Timón <jtimon@jtimon.cc>2017-05-03 17:55:52 +0200
commit330bb5a456a5f9c26703fa742e4c80691e1455ab (patch)
tree2677b80c8f6b61eceb24a07fa40a644b469b95ec /src/policy/policy.h
parent35da2aeed7d4000dde93957c3b6e048ab83c4f2b (diff)
downloadbitcoin-330bb5a456a5f9c26703fa742e4c80691e1455ab.tar.xz
Consensus: Minimal way to move dust out of consensus
Diffstat (limited to 'src/policy/policy.h')
-rw-r--r--src/policy/policy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index 6df541bc0f..24bf3fa5d7 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -13,6 +13,7 @@
#include <string>
class CCoinsViewCache;
+class CTxOut;
/** Default for -blockmaxsize, which controls the maximum size of block the mining code will create **/
static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 750000;
@@ -72,6 +73,10 @@ static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = STANDARD_SCRIPT_
static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = LOCKTIME_VERIFY_SEQUENCE |
LOCKTIME_MEDIAN_TIME_PAST;
+CAmount GetDustThreshold(const CTxOut& txout, const CFeeRate& dustRelayFee);
+
+bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFee);
+
bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType, const bool witnessEnabled = false);
/**
* Check for standard transaction types