OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Mon, 1 Jul 2019 15:12:48 +0000 (23:12 +0800)
committerChengcheng Zhang <943420582@qq.com>
Mon, 1 Jul 2019 15:12:48 +0000 (23:12 +0800)
database/wallet_store.go

index d6ecb88..2c8fcf7 100644 (file)
@@ -562,19 +562,3 @@ func (store *WalletStore) SetWalletInfo(rawWallet []byte) {
                store.batch.Set([]byte(WalletKey), rawWallet)
        }
 }
-
-func findTransactionsByAccount(annotatedTx *query.AnnotatedTx, accountID string) bool {
-       for _, input := range annotatedTx.Inputs {
-               if input.AccountID == accountID {
-                       return true
-               }
-       }
-
-       for _, output := range annotatedTx.Outputs {
-               if output.AccountID == accountID {
-                       return true
-               }
-       }
-
-       return false
-}