lnwallet: fix ErrDoubleSpend

This commit is contained in:
yyforyongyu 2024-07-03 23:33:40 +08:00
parent ddf46f435c
commit 8f4bcd0b3a
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

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