File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
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"
@@ -560,11 +561,15 @@ func (m *Manager) publishFinalizedWithdrawalTx(ctx context.Context,
560561 // Publish the withdrawal sweep transaction.
561562 err := m .cfg .WalletKit .PublishTransaction (ctx , tx , txLabel )
562563 if err != nil {
563- if ! strings .Contains (err .Error (), "output already spent" ) &&
564- ! strings .Contains (err .Error (), "insufficient fee " ) {
565-
564+ if ! strings .Contains (err .Error (), chain . ErrSameNonWitnessData . Error () ) &&
565+ ! strings .Contains (err .Error (), "output already spent " ) &&
566+ ! strings . Contains ( err . Error (), chain . ErrInsufficientFee . Error ()) {
566567 return false , err
567568 } else {
569+ if strings .Contains (err .Error (), "output already spent" ) {
570+ log .Warnf ("output already spent, tx %v, %v" ,
571+ tx .TxHash (), err )
572+ }
568573 return false , nil
569574 }
570575 } else {
You can’t perform that action at this time.
0 commit comments