OSDN Git Service

fix https://github.com/Bytom/vapor/pull/488#discussion_r379226522
authorHAOYUatHZ <haoyu@protonmail.com>
Fri, 14 Feb 2020 07:35:52 +0000 (15:35 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Fri, 14 Feb 2020 07:35:52 +0000 (15:35 +0800)
config/federation.go

index 31024ba..4bea973 100644 (file)
@@ -54,12 +54,5 @@ func (f *FederationAssetFilter) IsDust(tx *types.Tx) bool {
                }
        }
 
-       for _, output := range tx.Outputs {
-               assetID := output.AssetAmount().AssetId
-               if _, ok := f.whitelist[assetID.String()]; !ok {
-                       return true
-               }
-       }
-
        return false
 }