mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-01 23:40:21 +02:00
contractcourt: the breach arb now uses P2TR outputs for sweep addrs
This commit is contained in:
parent
2cc75db6f8
commit
cd313eba24
@ -1347,9 +1347,9 @@ func (b *BreachArbiter) createSweepTx(inputs []input.Input) (*wire.MsgTx,
|
||||
spendableOutputs = make([]input.Input, 0, len(inputs))
|
||||
|
||||
// The justice transaction we construct will be a segwit transaction
|
||||
// that pays to a p2wkh output. Components such as the version,
|
||||
// that pays to a p2tr output. Components such as the version,
|
||||
// nLockTime, and output are already included in the TxWeightEstimator.
|
||||
weightEstimate.AddP2WKHOutput()
|
||||
weightEstimate.AddP2TROutput()
|
||||
|
||||
// Next, we iterate over the breached outputs contained in the
|
||||
// retribution info. For each, we switch over the witness type such
|
||||
|
Loading…
x
Reference in New Issue
Block a user