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.
pull/444/head
carla 2 years ago
parent 52087c8bb4
commit 26886731d4
No known key found for this signature in database
GPG Key ID: 4CA7FE54A6213C91

@ -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

@ -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.

Loading…
Cancel
Save