lnwallet: fix ErrDoubleSpend
This commit is contained in:
1 file changed
+3
-1
@@ -1203,7 +1203,9 @@ func mapRpcclientError(err error) error {
|
|||||||
// If the wallet reports a double spend, convert it to our internal
|
// If the wallet reports a double spend, convert it to our internal
|
||||||
// ErrDoubleSpend and return.
|
// ErrDoubleSpend and return.
|
||||||
case errors.Is(err, chain.ErrMempoolConflict),
|
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
|
return lnwallet.ErrDoubleSpend
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user