mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Fees can never be dust
This commit is contained in:
parent
6c3b1f25c0
commit
7e12ebe802
1 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,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