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:
1 parent
44ab7e6b10
commit
8dee76a1b8
4 files changed
+131
-17
No files matched your search
@@ -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