mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Fees can never be dust
This commit is contained in:
parent
87ebb9a2e0
commit
7a94212eec
1 changed files with 2 additions and 0 deletions
|
|
@ -234,6 +234,8 @@ public:
|
|||
return false; // FIXME
|
||||
if (!nAsset.IsExplicit() || nAsset.GetAsset() != BITCOINID)
|
||||
return false;
|
||||
if (IsFee())
|
||||
return false;
|
||||
//Withdrawlocks are evaluated at a higher, static feerate
|
||||
//to ensure peg-outs are IsStandard on mainchain
|
||||
if (scriptPubKey.IsWithdrawLock() && nValue.GetAmount() < GetDustThreshold(withdrawLockTxFee))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue