OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2925d0
)
fix bug (#264)
author
Chengcheng Zhang
<943420582@qq.com>
Fri, 12 Jul 2019 03:02:33 +0000
(11:02 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Fri, 12 Jul 2019 03:02:33 +0000
(11:02 +0800)
* fix bug
* update
wallet/indexer.go
patch
|
blob
|
history
diff --git
a/wallet/indexer.go
b/wallet/indexer.go
index
0cf4a32
..
f107aec
100644
(file)
--- 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 {
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
assetID := cci.AssetId
if _, err := newStore.GetAsset(assetID); err == nil {
continue