multi: remove shadowed label variable in loopin swaps

We already have a Label field in the embedded SwapContract
field for loop in swaps. This commit removes an erroneously
added Label field in LoopInContract which may be a cause of
ambiguity when referencing this field.
This commit is contained in:
carla 2021-12-09 13:38:26 +02:00
parent 52087c8bb4
commit 26886731d4
No known key found for this signature in database
GPG key ID: 4CA7FE54A6213C91
2 changed files with 3 additions and 5 deletions

View file

@ -1596,8 +1596,10 @@ func TestBudgetWithLoopin(t *testing.T) {
SwapContract: loopdb.SwapContract{
InitiationTime: outsideBudget,
MaxSwapFee: budget,
Label: labels.AutoloopLabel(
swap.TypeIn,
),
},
Label: labels.AutoloopLabel(swap.TypeIn),
}
// Set our spend equal to our budget so we don't need to

View file

@ -26,10 +26,6 @@ type LoopInContract struct {
// ExternalHtlc specifies whether the htlc is published by an external
// source.
ExternalHtlc bool
// Label contains an optional label for the swap. Note that this field
// is stored separately to the rest of the contract on disk.
Label string
}
// LoopIn is a combination of the contract and the updates.