OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Wed, 3 Jul 2019 07:27:29 +0000 (15:27 +0800)
committerChengcheng Zhang <943420582@qq.com>
Wed, 3 Jul 2019 07:27:29 +0000 (15:27 +0800)
wallet/wallet_test.go

index 194976c..c5f0c53 100644 (file)
@@ -129,8 +129,8 @@ func TestWalletUpdate(t *testing.T) {
        }()
 
        store := database.NewStore(testDB)
-       testStore := database.NewWalletStore(testDB)
-       // testStore := newMockWalletStore(testDB)
+       walletStore := database.NewWalletStore(testDB)
+       // walletStore := newMockWalletStore(testDB)
        dispatcher := event.NewDispatcher()
        txPool := protocol.NewTxPool(store, dispatcher)
 
@@ -184,7 +184,7 @@ func TestWalletUpdate(t *testing.T) {
        txStatus.SetStatus(1, false)
        store.SaveBlock(block, txStatus)
 
-       w := mockWallet(testStore, accountManager, reg, chain, dispatcher, true)
+       w := mockWallet(walletStore, accountManager, reg, chain, dispatcher, true)
        err = w.AttachBlock(block)
        if err != nil {
                t.Fatal(err)