File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
"github.com/btcsuite/btcd/chaincfg/chainhash"
17
17
"github.com/btcsuite/btcd/txscript"
18
18
"github.com/btcsuite/btcd/wire"
19
+ "github.com/btcsuite/btcwallet/chain"
19
20
"github.com/lightninglabs/lndclient"
20
21
"github.com/lightninglabs/loop/staticaddr/deposit"
21
22
staticaddressrpc "github.com/lightninglabs/loop/swapserverrpc"
@@ -564,11 +565,17 @@ func (m *Manager) publishFinalizedWithdrawalTx(ctx context.Context,
564
565
// Publish the withdrawal sweep transaction.
565
566
err := m .cfg .WalletKit .PublishTransaction (ctx , tx , txLabel )
566
567
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 ()) {
569
571
570
572
return false , err
571
573
} 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
+
572
579
return false , nil
573
580
}
574
581
} else {
You can’t perform that action at this time.
0 commit comments