lnwallet/chancloser: use block height as lock time for rbf-coop
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -294,6 +294,9 @@ type Environment struct {
|
|||||||
// ChanType is the type of channel we're attempting to close.
|
// ChanType is the type of channel we're attempting to close.
|
||||||
ChanType channeldb.ChannelType
|
ChanType channeldb.ChannelType
|
||||||
|
|
||||||
|
// BlockHeight is the current block height.
|
||||||
|
BlockHeight uint32
|
||||||
|
|
||||||
// DefaultFeeRate is the fee we'll use for the closing transaction if
|
// 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
|
// 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.
|
// 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{
|
Msgs: []lnwire.Message{&lnwire.ClosingComplete{
|
||||||
ChannelID: env.ChanID,
|
ChannelID: env.ChanID,
|
||||||
FeeSatoshis: absoluteFee,
|
FeeSatoshis: absoluteFee,
|
||||||
// TODO(roasbeef): thread thru proper height
|
LockTime: env.BlockHeight,
|
||||||
// value
|
|
||||||
LockTime: mempool.MaxRBFSequence,
|
|
||||||
ClosingSigs: closingSigs,
|
ClosingSigs: closingSigs,
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in new issue
Block a user