MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsDust

Function IsDust

src/policy/policy.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFeeIn)
60{
61 if (!txout.nValue.IsExplicit())
62 return false; // FIXME
63 if (!txout.nAsset.IsExplicit())
64 return false;
65 if (txout.IsFee())
66 return false;
67 return (txout.nValue.GetAmount() < GetDustThreshold(txout, dustRelayFeeIn));
68}
69
70bool IsStandard(const CScript& scriptPubKey, TxoutType& whichType)
71{

Callers 5

IsStandardTxFunction · 0.85
spend.cppFile · 0.85
FUZZ_TARGETFunction · 0.85
updateLabelsMethod · 0.85
isDustFunction · 0.85

Calls 4

GetDustThresholdFunction · 0.85
IsExplicitMethod · 0.80
IsFeeMethod · 0.80
GetAmountMethod · 0.80

Tested by 1

FUZZ_TARGETFunction · 0.68