Skip to content

Commit f01f440

Browse files
authored
Merge pull request #444 from carlaKC/loopin-removeshadowedvar
multi: remove shadowed label variable in loopin swaps
2 parents 52087c8 + 2688673 commit f01f440

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

liquidity/liquidity_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,8 +1596,10 @@ func TestBudgetWithLoopin(t *testing.T) {
15961596
SwapContract: loopdb.SwapContract{
15971597
InitiationTime: outsideBudget,
15981598
MaxSwapFee: budget,
1599+
Label: labels.AutoloopLabel(
1600+
swap.TypeIn,
1601+
),
15991602
},
1600-
Label: labels.AutoloopLabel(swap.TypeIn),
16011603
}
16021604

16031605
// Set our spend equal to our budget so we don't need to

loopdb/loopin.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ type LoopInContract struct {
2626
// ExternalHtlc specifies whether the htlc is published by an external
2727
// source.
2828
ExternalHtlc bool
29-
30-
// Label contains an optional label for the swap. Note that this field
31-
// is stored separately to the rest of the contract on disk.
32-
Label string
3329
}
3430

3531
// LoopIn is a combination of the contract and the updates.

0 commit comments

Comments
 (0)