mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
breacharbiter: check ErrDoubleSpend from PublishTransaction
This commit is contained in:
parent
2ae1b7dbbe
commit
cabc07ea7d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user