mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
No dust for non-bitcoin outputs
This commit is contained in:
parent
f9fd37cc8e
commit
99936b03db
1 changed files with 3 additions and 0 deletions
|
|
@ -357,6 +357,9 @@ public:
|
|||
{
|
||||
if (!nValue.IsAmount())
|
||||
return false; // FIXME
|
||||
uint256 assetid;
|
||||
if (!nAsset.GetAssetID(assetid) || assetid != BITCOINID)
|
||||
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