mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
lnwallet: don't ignore any returned error from PublishTransaction
This commit is contained in:
parent
7aaa15b8b5
commit
3fd7f28b39
1 changed files with 3 additions and 7 deletions
|
@ -5,7 +5,6 @@ import (
|
|||
"crypto/sha256"
|
||||
"fmt"
|
||||
"net"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
|
@ -1114,13 +1113,10 @@ func (l *LightningWallet) handleFundingCounterPartySigs(msg *addCounterPartySigs
|
|||
|
||||
// Broadcast the finalized funding transaction to the network.
|
||||
if err := l.PublishTransaction(fundingTx); err != nil {
|
||||
// TODO(roasbeef): need to make this into a concrete error
|
||||
if !strings.Contains(err.Error(), "already have") {
|
||||
msg.err <- err
|
||||
msg.completeChan <- nil
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
msg.completeChan <- res.partialState
|
||||
msg.err <- nil
|
||||
|
|
Loading…
Add table
Reference in a new issue