Skip to content

Commit bf50c4f

Browse files
committed
lnwallet: fix ErrDoubleSpend
1 parent 528e1de commit bf50c4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lnwallet/btcwallet/btcwallet.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,9 @@ func mapRpcclientError(err error) error {
12031203
// If the wallet reports a double spend, convert it to our internal
12041204
// ErrDoubleSpend and return.
12051205
case errors.Is(err, chain.ErrMempoolConflict),
1206-
errors.Is(err, chain.ErrMissingInputs):
1206+
errors.Is(err, chain.ErrMissingInputs),
1207+
errors.Is(err, chain.ErrTxAlreadyKnown),
1208+
errors.Is(err, chain.ErrTxAlreadyConfirmed):
12071209

12081210
return lnwallet.ErrDoubleSpend
12091211

0 commit comments

Comments
 (0)