mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
lnwallet/chancloser: use block height as lock time for rbf-coop
This commit is contained in:
parent
540d3c0fc7
commit
ab4297e127
2 changed files with 4 additions and 3 deletions
|
@ -294,6 +294,9 @@ type Environment struct {
|
|||
// ChanType is the type of channel we're attempting to close.
|
||||
ChanType channeldb.ChannelType
|
||||
|
||||
// BlockHeight is the current block height.
|
||||
BlockHeight uint32
|
||||
|
||||
// DefaultFeeRate is the fee we'll use for the closing transaction if
|
||||
// the user didn't specify an ideal fee rate. This may happen if the
|
||||
// remote party is the one that initiates the co-op close.
|
||||
|
|
|
@ -716,9 +716,7 @@ func (l *LocalCloseStart) ProcessEvent(event ProtocolEvent, env *Environment,
|
|||
Msgs: []lnwire.Message{&lnwire.ClosingComplete{
|
||||
ChannelID: env.ChanID,
|
||||
FeeSatoshis: absoluteFee,
|
||||
// TODO(roasbeef): thread thru proper height
|
||||
// value
|
||||
LockTime: mempool.MaxRBFSequence,
|
||||
LockTime: env.BlockHeight,
|
||||
ClosingSigs: closingSigs,
|
||||
}},
|
||||
}}
|
||||
|
|
Loading…
Add table
Reference in a new issue