lnwallet: fix ErrDoubleSpend

This commit is contained in:
yyforyongyu committed 2024-07-06 13:59:28 +08:00
1 parent ddf46f435c
commit 8f4bcd0b3a
1 file changed
+3 -1
+3 -1
View File
@@ -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