OSDN Git Service

fix bug (#264)
authorChengcheng Zhang <943420582@qq.com>
Fri, 12 Jul 2019 03:02:33 +0000 (11:02 +0800)
committerPaladz <yzhu101@uottawa.ca>
Fri, 12 Jul 2019 03:02:33 +0000 (11:02 +0800)
* fix bug

* update

wallet/indexer.go

index 0cf4a32..f107aec 100644 (file)
@@ -34,6 +34,9 @@ func saveExternalAssetDefinition(b *types.Block, store WalletStore) error {
        for _, tx := range b.Transactions {
                for _, orig := range tx.Inputs {
                        if cci, ok := orig.TypedInput.(*types.CrossChainInput); ok {
+                               if cci.AssetId.String() == consensus.BTMAssetID.String() {
+                                       continue
+                               }
                                assetID := cci.AssetId
                                if _, err := newStore.GetAsset(assetID); err == nil {
                                        continue