mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
funding: don't abort if cleanup fails
If we can't clean up pending channels from a previous batch attempt, that shouldn't block startup. So instead of shutting down, we just log the warning and continue.
This commit is contained in:
parent
574c179db6
commit
d16eb252e3
1 changed files with 8 additions and 3 deletions
|
|
@ -2,10 +2,10 @@ package funding
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/lightninglabs/lndclient"
|
||||
"github.com/lightninglabs/pool/order"
|
||||
"github.com/lightningnetwork/lnd/lnrpc"
|
||||
|
|
@ -100,8 +100,13 @@ func AbandonCanceledChannels(matchedOrders map[order.Nonce][]*order.MatchedOrder
|
|||
batchTx, wallet, ourOrder, matchedOrder,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error locating channel "+
|
||||
"outpoint: %v", err)
|
||||
log.Warnf("Could not find channel output for "+
|
||||
"our_order=%v, matched_order=%v in "+
|
||||
"latest batch TX=%v",
|
||||
ourOrderNonce.String(),
|
||||
matchedOrder.Order.Nonce(),
|
||||
spew.Sdump(batchTx))
|
||||
continue
|
||||
}
|
||||
|
||||
channelPoint := &lnrpc.ChannelPoint{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue