From 330bb5a456a5f9c26703fa742e4c80691e1455ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Tim=C3=B3n?= Date: Fri, 14 Oct 2016 17:49:05 +0200 Subject: Consensus: Minimal way to move dust out of consensus --- src/policy/policy.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/policy/policy.h') 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 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 -- cgit v1.2.3