mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
lnwallet: fix ErrDoubleSpend
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user