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"
@@ -568,11 +569,17 @@ func (m *Manager) publishFinalizedWithdrawalTx(ctx context.Context,
568569 // Publish the withdrawal sweep transaction.
569570 err := m .cfg .WalletKit .PublishTransaction (ctx , tx , txLabel )
570571 if err != nil {
571- if ! strings .Contains (err .Error (), "output already spent" ) &&
572- ! strings .Contains (err .Error (), "insufficient fee" ) {
572+ if ! strings .Contains (err .Error (), chain .ErrSameNonWitnessData .Error ()) &&
573+ ! strings .Contains (err .Error (), "output already spent" ) &&
574+ ! strings .Contains (err .Error (), chain .ErrInsufficientFee .Error ()) {
573575
574576 return false , err
575577 } else {
578+ if strings .Contains (err .Error (), "output already spent" ) {
579+ log .Warnf ("output already spent, tx %v, %v" ,
580+ tx .TxHash (), err )
581+ }
582+
576583 return false , nil
577584 }
578585 } else {
You can’t perform that action at this time.
0 commit comments