mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-23 15:34:22 +01:00
breacharbiter: check ErrDoubleSpend from PublishTransaction
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"io"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
@@ -580,7 +579,7 @@ secondLevelCheck:
|
||||
if err != nil {
|
||||
brarLog.Errorf("unable to broadcast "+
|
||||
"justice tx: %v", err)
|
||||
if strings.Contains(err.Error(), "already been spent") {
|
||||
if err == lnwallet.ErrDoubleSpend {
|
||||
brarLog.Infof("Attempting to transfer HTLC revocations " +
|
||||
"to the second level")
|
||||
finalTx = nil
|
||||
|
||||
Reference in New Issue
Block a user