mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 14:50:43 +02:00
peer+chancloser: allow restarting coop close process
On startup, we'll check whether we have the coop close chan status and have already broadcasted a coop close txn, and then make a decision on whether to restart the process based on that.
This commit is contained in:
@@ -483,6 +483,10 @@ func (c *ChanCloser) ProcessCloseMsg(msg lnwire.Message) ([]lnwire.Message,
|
||||
feeProposal := calcCompromiseFee(c.chanPoint, c.idealFeeSat,
|
||||
c.lastFeeProposal, remoteProposedFee,
|
||||
)
|
||||
if feeProposal > c.idealFeeSat*3 {
|
||||
return nil, false, fmt.Errorf("couldn't find" +
|
||||
" compromise fee")
|
||||
}
|
||||
|
||||
// With our new fee proposal calculated, we'll craft a new close
|
||||
// signed signature to send to the other party so we can continue
|
||||
|
Reference in New Issue
Block a user