From: Chengcheng Zhang <943420582@qq.com> Date: Fri, 12 Jul 2019 03:02:33 +0000 (+0800) Subject: fix bug (#264) X-Git-Tag: v1.0.5~156 X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=commitdiff_plain;h=c8f5610a18a7f86af127e6cd912ff691285674a4 fix bug (#264) * fix bug * update --- diff --git a/wallet/indexer.go b/wallet/indexer.go index 0cf4a326..f107aece 100644 --- a/wallet/indexer.go +++ b/wallet/indexer.go @@ -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