mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-20 13:27:27 +02:00
lnwallet: fix ErrDoubleSpend
This commit is contained in:
parent
ddf46f435c
commit
8f4bcd0b3a
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue