From ed6682ea4a1502efc9f9ca3030ead00b9e2cd912 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 3 Apr 2018 21:08:40 +0200 Subject: [PATCH] multi test: make mock adhere to api change --- discovery/gossiper_test.go | 3 ++- fundingmanager_test.go | 2 +- mock.go | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/discovery/gossiper_test.go b/discovery/gossiper_test.go index 18c69da5..4c27af99 100644 --- a/discovery/gossiper_test.go +++ b/discovery/gossiper_test.go @@ -261,7 +261,8 @@ func (m *mockNotifier) RegisterConfirmationsNtfn(txid *chainhash.Hash, return nil, nil } -func (m *mockNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, _ uint32) (*chainntnfs.SpendEvent, error) { +func (m *mockNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, _ uint32, + _ bool) (*chainntnfs.SpendEvent, error) { return nil, nil } diff --git a/fundingmanager_test.go b/fundingmanager_test.go index 27d9271b..7090a3e6 100644 --- a/fundingmanager_test.go +++ b/fundingmanager_test.go @@ -124,7 +124,7 @@ func (m *mockNotifier) Stop() error { } func (m *mockNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, - heightHint uint32) (*chainntnfs.SpendEvent, error) { + heightHint uint32, _ bool) (*chainntnfs.SpendEvent, error) { return &chainntnfs.SpendEvent{ Spend: make(chan *chainntnfs.SpendDetail), Cancel: func() {}, diff --git a/mock.go b/mock.go index 5d2868d0..35154ab9 100644 --- a/mock.go +++ b/mock.go @@ -106,7 +106,7 @@ func (m *mockNotfier) Stop() error { return nil } func (m *mockNotfier) RegisterSpendNtfn(outpoint *wire.OutPoint, - heightHint uint32) (*chainntnfs.SpendEvent, error) { + heightHint uint32, _ bool) (*chainntnfs.SpendEvent, error) { return &chainntnfs.SpendEvent{ Spend: make(chan *chainntnfs.SpendDetail), Cancel: func() {}, @@ -130,7 +130,7 @@ func makeMockSpendNotifier() *mockSpendNotifier { } func (m *mockSpendNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, - heightHint uint32) (*chainntnfs.SpendEvent, error) { + heightHint uint32, _ bool) (*chainntnfs.SpendEvent, error) { spendChan := make(chan *chainntnfs.SpendDetail) m.spendMap[*outpoint] = append(m.spendMap[*outpoint], spendChan)