Skip to content

Commit

Permalink
lock outpoint on process feetx
Browse files Browse the repository at this point in the history
  • Loading branch information
vctt94 committed Dec 15, 2020
1 parent 6f45010 commit 8aad8d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/vsp/vsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ func (v *VSP) Process(ctx context.Context, ticketHash chainhash.Hash, credits []
if err != nil {
return nil, err
}
// lock inputs in case they are unlocked.
for _, inp := range feeTx.TxIn {
v.cfg.Wallet.LockOutpoint(&inp.PreviousOutPoint.Hash, inp.PreviousOutPoint.Index)
}
err = v.cfg.Wallet.SetPublished(ctx, &feeHash, false)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8aad8d5

Please sign in to comment.