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)
}
}
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 {