mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 12:01:27 +02:00
peer: decorate delivery addr w/ internal key
In this commit, we move to add the internal key to the delivery addr. This way, we give the aux chan closer the extra information it may need to properly augment the normal co-op close process.
This commit is contained in:
committed by
Oliver Gugger
parent
fbbcecc635
commit
39e4e8d8a4
@@ -361,7 +361,8 @@ func TestMaxFeeClamp(t *testing.T) {
|
||||
Channel: &channel,
|
||||
MaxFee: test.inputMaxFee,
|
||||
FeeEstimator: &SimpleCoopFeeEstimator{},
|
||||
}, nil, test.idealFee, 0, nil, lntypes.Remote,
|
||||
}, DeliveryAddrWithKey{}, test.idealFee, 0, nil,
|
||||
lntypes.Remote,
|
||||
)
|
||||
|
||||
// We'll call initFeeBaseline early here since we need
|
||||
@@ -402,7 +403,8 @@ func TestMaxFeeBailOut(t *testing.T) {
|
||||
MaxFee: idealFee * 2,
|
||||
}
|
||||
chanCloser := NewChanCloser(
|
||||
closeCfg, nil, idealFee, 0, nil, lntypes.Remote,
|
||||
closeCfg, DeliveryAddrWithKey{}, idealFee, 0,
|
||||
nil, lntypes.Remote,
|
||||
)
|
||||
|
||||
// We'll now force the channel state into the
|
||||
@@ -526,7 +528,7 @@ func TestTaprootFastClose(t *testing.T) {
|
||||
DisableChannel: func(wire.OutPoint) error {
|
||||
return nil
|
||||
},
|
||||
}, nil, idealFee, 0, nil, lntypes.Local,
|
||||
}, DeliveryAddrWithKey{}, idealFee, 0, nil, lntypes.Local,
|
||||
)
|
||||
aliceCloser.initFeeBaseline()
|
||||
|
||||
@@ -543,7 +545,7 @@ func TestTaprootFastClose(t *testing.T) {
|
||||
DisableChannel: func(wire.OutPoint) error {
|
||||
return nil
|
||||
},
|
||||
}, nil, idealFee, 0, nil, lntypes.Remote,
|
||||
}, DeliveryAddrWithKey{}, idealFee, 0, nil, lntypes.Remote,
|
||||
)
|
||||
bobCloser.initFeeBaseline()
|
||||
|
||||
|
Reference in New Issue
Block a user