Skip to content

Commit 1260607

Browse files
committed
go.mod: update lndclient
Include lightninglabs/lndclient#233 RegisterSpendNtfn: support reorg channel TODO: remove replace in go.mod
1 parent 7bab9c6 commit 1260607

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,6 @@ replace github.com/lightninglabs/loop/swapserverrpc => ./swapserverrpc
216216

217217
replace github.com/lightninglabs/loop/looprpc => ./looprpc
218218

219+
replace github.com/lightninglabs/lndclient => github.com/starius/lndclient v0.19.0-11-spend-reorgs
220+
219221
go 1.23.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,6 @@ github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI
11081108
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
11091109
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.3 h1:NuDp6Z+QNMSzZ/+RzWsjgAgQSr/REDxTiHmTczZxlXA=
11101110
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.3/go.mod h1:bDnEKRN1u13NFBuy/C+bFLhxA5bfd3clT25y76QY0AM=
1111-
github.com/lightninglabs/lndclient v0.19.0-7 h1:8+wGQnO8KSUq9elzGLscBUGchID+bWvrpX2qCo+tU48=
1112-
github.com/lightninglabs/lndclient v0.19.0-7/go.mod h1:35d50tEMFxlJlKTZGYA6EdOllPsbxS4FUmEVbETUx+Q=
11131111
github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2 h1:eFjp1dIB2BhhQp/THKrjLdlYuPugO9UU4kDqu91OX/Q=
11141112
github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2/go.mod h1:99BKpIi6ruaaXRM1A77eqZ+FWPQ3cfRa+ZVy5bmWMaY=
11151113
github.com/lightninglabs/neutrino v0.16.1 h1:5Kz4ToxncEVkpKC6fwUjXKtFKJhuxlG3sBB3MdJTJjs=
@@ -1289,6 +1287,8 @@ github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z
12891287
github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
12901288
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
12911289
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
1290+
github.com/starius/lndclient v0.19.0-11-spend-reorgs h1:VTtNN/GaeQ2zbTjaxgYovgZFtryKHNXmaKw4AVd5quM=
1291+
github.com/starius/lndclient v0.19.0-11-spend-reorgs/go.mod h1:cicoJY1AwZuRVXGD8Knp50TRT7TGBmw1k37uPQsGQiw=
12921292
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
12931293
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
12941294
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=

instantout/reservation/actions_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ func (m *MockChainNotifier) RegisterBlockEpochNtfn(ctx context.Context) (
187187
}
188188

189189
func (m *MockChainNotifier) RegisterSpendNtfn(ctx context.Context,
190-
outpoint *wire.OutPoint, pkScript []byte, heightHint int32) (
191-
chan *chainntnfs.SpendDetail, chan error, error) {
190+
outpoint *wire.OutPoint, pkScript []byte, heightHint int32,
191+
options ...lndclient.NotifierOption) (chan *chainntnfs.SpendDetail,
192+
chan error, error) {
192193

193194
args := m.Called(ctx, pkScript, heightHint)
194195
return args.Get(0).(chan *chainntnfs.SpendDetail), args.Get(1).(chan error), args.Error(2)

staticaddr/deposit/manager_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ func (m *MockChainNotifier) RegisterBlockEpochNtfn(ctx context.Context) (
199199
}
200200

201201
func (m *MockChainNotifier) RegisterSpendNtfn(ctx context.Context,
202-
outpoint *wire.OutPoint, pkScript []byte, heightHint int32) (
203-
chan *chainntnfs.SpendDetail, chan error, error) {
202+
outpoint *wire.OutPoint, pkScript []byte, heightHint int32,
203+
_ ...lndclient.NotifierOption) (chan *chainntnfs.SpendDetail,
204+
chan error, error) {
204205

205206
args := m.Called(ctx, pkScript, heightHint)
206207
return args.Get(0).(chan *chainntnfs.SpendDetail),

test/chainnotifier_mock.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ type ConfRegistration struct {
5151
}
5252

5353
func (c *mockChainNotifier) RegisterSpendNtfn(ctx context.Context,
54-
outpoint *wire.OutPoint, pkScript []byte, heightHint int32) (
55-
chan *chainntnfs.SpendDetail, chan error, error) {
54+
outpoint *wire.OutPoint, pkScript []byte, heightHint int32,
55+
opts ...lndclient.NotifierOption) (chan *chainntnfs.SpendDetail,
56+
chan error, error) {
5657

5758
spendChan0 := make(chan *chainntnfs.SpendDetail)
5859
spendErrChan := make(chan error, 1)

0 commit comments

Comments
 (0)