Merge pull request #444 from carlaKC/loopin-removeshadowedvar

multi: remove shadowed label variable in loopin swaps
pull/445/head
Carla Kirk-Cohen 2 years ago committed by GitHub
commit f01f440715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1596,8 +1596,10 @@ func TestBudgetWithLoopin(t *testing.T) {
SwapContract: loopdb.SwapContract{ SwapContract: loopdb.SwapContract{
InitiationTime: outsideBudget, InitiationTime: outsideBudget,
MaxSwapFee: budget, 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 // 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 // ExternalHtlc specifies whether the htlc is published by an external
// source. // source.
ExternalHtlc bool 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. // LoopIn is a combination of the contract and the updates.

Loading…
Cancel
Save