OSDN Git Service

fix ci
authorshenao78 <shenao.78@163.com>
Thu, 13 Jun 2019 08:55:01 +0000 (16:55 +0800)
committershenao78 <shenao.78@163.com>
Thu, 13 Jun 2019 08:55:01 +0000 (16:55 +0800)
wallet/unconfirmed.go
wallet/utxo_test.go

index 4eec6a2..5641565 100644 (file)
@@ -39,7 +39,7 @@ func (w *Wallet) AddUnconfirmedTx(txD *protocol.TxDesc) {
                log.WithFields(log.Fields{"module": logModule, "err": err}).Error("wallet fail on saveUnconfirmedTx")
        }
 
-       utxos := txOutToUtxos(txD.Tx, txD.StatusFail, 0)
+       utxos := txOutToUtxos(txD.Tx, txD.StatusFail, 0, 0)
        utxos = w.filterAccountUtxo(utxos)
        w.AccountMgr.AddUnconfirmedUtxo(utxos)
 }
index c5aad35..29dd641 100644 (file)
@@ -720,7 +720,7 @@ func TestTxOutToUtxos(t *testing.T) {
        }
 
        for i, c := range cases {
-               if gotUtxos := txOutToUtxos(c.tx, c.statusFail, c.vaildHeight); !testutil.DeepEqual(gotUtxos, c.wantUtxos) {
+               if gotUtxos := txOutToUtxos(c.tx, c.statusFail, c.vaildHeight, 0); !testutil.DeepEqual(gotUtxos, c.wantUtxos) {
                        t.Errorf("case %d: got %v want %v", i, gotUtxos, c.wantUtxos)
 
                        for j, u := range gotUtxos {