From 391a3fc3585a114eac71f4363f48922a5d827471 Mon Sep 17 00:00:00 2001 From: Chengcheng Zhang <943420582@qq.com> Date: Mon, 24 Jun 2019 23:45:55 +0800 Subject: [PATCH] update --- wallet/utxo.go | 2 +- wallet/wallet.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wallet/utxo.go b/wallet/utxo.go index 66260b28..78b6e0fa 100644 --- a/wallet/utxo.go +++ b/wallet/utxo.go @@ -73,7 +73,7 @@ func (w *Wallet) attachUtxos(b *types.Block, txStatus *bc.TransactionStatus) { outputUtxos := txOutToUtxos(tx, statusFail, b.Height) utxos := w.filterAccountUtxo(outputUtxos) if err := w.saveUtxos(utxos); err != nil { - log.WithFields(log.Fields{"module": logModule, "err": err}).Error("attachUtxos fail on batchSaveUtxos") + log.WithFields(log.Fields{"module": logModule, "err": err}).Error("attachUtxos fail on saveUtxos") } } } diff --git a/wallet/wallet.go b/wallet/wallet.go index d3d97da8..f2c8c58e 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -2,6 +2,7 @@ package wallet import ( "encoding/json" + "fmt" "sync" log "github.com/sirupsen/logrus" @@ -181,6 +182,7 @@ func (w *Wallet) AttachBlock(block *types.Block) error { if err != nil { return err } + fmt.Println("txStatus is:", txStatus) if err := w.RecoveryMgr.FilterRecoveryTxs(block); err != nil { log.WithField("err", err).Error("filter recovery txs") @@ -188,6 +190,7 @@ func (w *Wallet) AttachBlock(block *types.Block) error { } annotatedTxs := w.filterAccountTxs(block, txStatus) + fmt.Println("len(annotatedTxs) is:", len(annotatedTxs)) saveExternalAssetDefinition(block, w.store) annotateTxsAccount(annotatedTxs, w.store) -- 2.11.0