Skip to content

Commit

Permalink
lnwallet: fix ErrDoubleSpend
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Jul 4, 2024
1 parent 528e1de commit bf50c4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lnwallet/btcwallet/btcwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,9 @@ func mapRpcclientError(err error) error {
// If the wallet reports a double spend, convert it to our internal
// ErrDoubleSpend and return.
case errors.Is(err, chain.ErrMempoolConflict),
errors.Is(err, chain.ErrMissingInputs):
errors.Is(err, chain.ErrMissingInputs),
errors.Is(err, chain.ErrTxAlreadyKnown),
errors.Is(err, chain.ErrTxAlreadyConfirmed):

return lnwallet.ErrDoubleSpend

Expand Down

0 comments on commit bf50c4f

Please sign in to comment.