From d4666cb1401ea7e97a11007300e3414ba9a0fe9a Mon Sep 17 00:00:00 2001 From: Chengcheng Zhang <943420582@qq.com> Date: Fri, 5 Jul 2019 03:15:57 +0800 Subject: [PATCH] remove comments --- test/wallet_test.go | 1 - wallet/wallet.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/test/wallet_test.go b/test/wallet_test.go index 53540e80..deaf2681 100644 --- a/test/wallet_test.go +++ b/test/wallet_test.go @@ -114,7 +114,6 @@ func TestWalletUpdate(t *testing.T) { } for position, tx := range block.Transactions { - // get := w.store.GetGlobalTransactionIndex(tx.ID.String()) get := testDB.Get(database.CalcGlobalTxIndexKey(tx.ID.String())) bh := block.BlockHeader.Hash() expect := database.CalcGlobalTxIndex(&bh, uint64(position)) diff --git a/wallet/wallet.go b/wallet/wallet.go index 722e726e..5b25ded0 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -1,7 +1,6 @@ package wallet import ( - "fmt" "sync" log "github.com/sirupsen/logrus" @@ -168,9 +167,6 @@ func (w *Wallet) AttachBlock(block *types.Block) error { w.rw.Lock() defer w.rw.Unlock() - fmt.Println("block.PreviousBlockHash:", block.PreviousBlockHash) - fmt.Println("w.status.WorkHash:", w.status.WorkHash) - if block.PreviousBlockHash != w.status.WorkHash { log.Warn("wallet skip attachBlock due to status hash not equal to previous hash") return nil -- 2.11.0