Skip to content

Commit

Permalink
multi: don't pass breach txn to NewBreachRetribution in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cfromknecht committed Jan 8, 2019
1 parent 8c2136d commit f1770c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion breacharbiter_test.go
Expand Up @@ -1181,7 +1181,7 @@ func TestBreachSecondLevelTransfer(t *testing.T) {

// Notify the breach arbiter about the breach.
retribution, err := lnwallet.NewBreachRetribution(
alice.State(), height, forceCloseTx, 1)
alice.State(), height, 1)
if err != nil {
t.Fatalf("unable to create breach retribution: %v", err)
}
Expand Down
3 changes: 1 addition & 2 deletions lnwallet/channel_test.go
Expand Up @@ -5389,7 +5389,6 @@ func TestNewBreachRetributionSkipsDustHtlcs(t *testing.T) {

// At this point, we'll capture the current state number, as well as
// the current commitment.
revokedCommit := bobChannel.channelState.LocalCommitment.CommitTx
revokedStateNum := aliceChannel.channelState.LocalCommitment.CommitHeight

// We'll now have Bob settle those HTLC's to Alice and then advance
Expand All @@ -5411,7 +5410,7 @@ func TestNewBreachRetributionSkipsDustHtlcs(t *testing.T) {
// At this point, we'll now simulate a contract breach by Bob using the
// NewBreachRetribution method.
breachRet, err := NewBreachRetribution(
aliceChannel.channelState, revokedStateNum, revokedCommit, 100,
aliceChannel.channelState, revokedStateNum, 100,
)
if err != nil {
t.Fatalf("unable to create breach retribution: %v", err)
Expand Down

0 comments on commit f1770c3

Please sign in to comment.