lnd: delete mock.go, move mockSpendNotifier to lntest/mock
This commit is contained in:
1 parent
4ff03afee0
commit
9ce89c1b46
2 files changed
+28
-26
No files matched your search
@@ -1434,7 +1434,7 @@ func testBreachSpends(t *testing.T, test breachTest) {
|
||||
|
||||
// Notify that the breaching transaction is confirmed, to trigger the
|
||||
// retribution logic.
|
||||
notifier := brar.cfg.Notifier.(*mockSpendNotifier)
|
||||
notifier := brar.cfg.Notifier.(*mock.SpendNotifier)
|
||||
notifier.ConfChan <- &chainntnfs.TxConfirmation{}
|
||||
|
||||
// The breach arbiter should attempt to sweep all outputs on the
|
||||
@@ -1674,7 +1674,7 @@ func createTestArbiter(t *testing.T, contractBreaches chan *ContractBreachEvent,
|
||||
signer := &mock.SingleSigner{Privkey: aliceKeyPriv}
|
||||
|
||||
// Assemble our test arbiter.
|
||||
notifier := makeMockSpendNotifier()
|
||||
notifier := mock.MakeMockSpendNotifier()
|
||||
ba := newBreachArbiter(&BreachConfig{
|
||||
CloseLink: func(_ *wire.OutPoint, _ htlcswitch.ChannelCloseType) {},
|
||||
DB: db,
|
||||
|
||||
Reference in new issue
Block a user