File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
1616 "github.com/btcsuite/btcd/chaincfg/chainhash"
1717 "github.com/btcsuite/btcd/txscript"
1818 "github.com/btcsuite/btcd/wire"
19+ "github.com/btcsuite/btcwallet/chain"
1920 "github.com/lightninglabs/lndclient"
2021 "github.com/lightninglabs/loop/staticaddr/deposit"
2122 staticaddressrpc "github.com/lightninglabs/loop/swapserverrpc"
@@ -564,11 +565,17 @@ func (m *Manager) publishFinalizedWithdrawalTx(ctx context.Context,
564565 // Publish the withdrawal sweep transaction.
565566 err := m .cfg .WalletKit .PublishTransaction (ctx , tx , txLabel )
566567 if err != nil {
567- if ! strings .Contains (err .Error (), "output already spent" ) &&
568- ! strings .Contains (err .Error (), "insufficient fee" ) {
568+ if ! strings .Contains (err .Error (), chain .ErrSameNonWitnessData .Error ()) &&
569+ ! strings .Contains (err .Error (), "output already spent" ) &&
570+ ! strings .Contains (err .Error (), chain .ErrInsufficientFee .Error ()) {
569571
570572 return false , err
571573 } else {
574+ if strings .Contains (err .Error (), "output already spent" ) {
575+ log .Warnf ("output already spent, tx %v, %v" ,
576+ tx .TxHash (), err )
577+ }
578+
572579 return false , nil
573580 }
574581 } else {
You can’t perform that action at this time.
0 commit comments