Skip to content

Commit 7e5c5f2

Browse files
committed
Do not record unsigned split txs from purchasetickets
1 parent d374979 commit 7e5c5f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

wallet/createtx.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,11 +1136,11 @@ func (w *Wallet) individualSplit(ctx context.Context, req *PurchaseTicketsReques
11361136
if err != nil {
11371137
return
11381138
}
1139-
err = w.recordAuthoredTx(ctx, op, a)
1140-
if err != nil {
1141-
return
1142-
}
11431139
if !req.DontSignTx {
1140+
err = w.recordAuthoredTx(ctx, op, a)
1141+
if err != nil {
1142+
return
1143+
}
11441144
err = w.publishAndWatch(ctx, op, nil, a.atx.Tx, a.watch)
11451145
if err != nil {
11461146
return
@@ -1199,11 +1199,11 @@ func (w *Wallet) vspSplit(ctx context.Context, req *PurchaseTicketsRequest, need
11991199
if err != nil {
12001200
return
12011201
}
1202-
err = w.recordAuthoredTx(ctx, op, a)
1203-
if err != nil {
1204-
return
1205-
}
12061202
if !req.DontSignTx {
1203+
err = w.recordAuthoredTx(ctx, op, a)
1204+
if err != nil {
1205+
return
1206+
}
12071207
err = w.publishAndWatch(ctx, op, nil, a.atx.Tx, a.watch)
12081208
if err != nil {
12091209
return

0 commit comments

Comments
 (0)