OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Thu, 4 Jul 2019 20:25:09 +0000 (04:25 +0800)
committerChengcheng Zhang <943420582@qq.com>
Thu, 4 Jul 2019 20:25:09 +0000 (04:25 +0800)
test/wallet_test.go

index 77545e2..45d729f 100644 (file)
@@ -186,7 +186,6 @@ func TestMemPoolTxQueryLoop(t *testing.T) {
        }()
 
        store := database.NewStore(testDB)
-       // store := newMockStore(testDB)
        dispatcher := event.NewDispatcher()
        txPool := protocol.NewTxPool(store, dispatcher)
 
@@ -234,11 +233,9 @@ func TestMemPoolTxQueryLoop(t *testing.T) {
        }
 
        tx := types.NewTx(*txData)
-       //block := mockSingleBlock(tx)
        txStatus := bc.NewTransactionStatus()
        txStatus.SetStatus(0, false)
        walletStore := database.NewWalletStore(testDB)
-       // w, err := NewWallet(walletStore, accountManager, reg, hsm, chain, dispatcher, false)
        w := newMockWallet(walletStore, accountManager, reg, chain, dispatcher, false)
        go w.Wallet.MemPoolTxQueryLoop()
        w.Wallet.EventDispatcher.Post(protocol.TxMsgEvent{TxMsg: &protocol.TxPoolMsg{TxDesc: &protocol.TxDesc{Tx: tx}, MsgType: protocol.MsgNewTx}})