Skip to content

Commit dfec4a6

Browse files
committed
multi: update lightning-onion version
Update the lighting-onion dependency to include the lates changes which support route blinding.
1 parent e2f5374 commit dfec4a6

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

channeldb/migration_01_to_11/route.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (r *Route) ToSphinxPath() (*sphinx.PaymentPath, error) {
277277
hopData.NextAddress[:], nextHop,
278278
)
279279

280-
payload, err = sphinx.NewHopPayload(&hopData, nil)
280+
payload, err = sphinx.NewLegacyHopPayload(&hopData)
281281
if err != nil {
282282
return nil, err
283283
}
@@ -294,8 +294,7 @@ func (r *Route) ToSphinxPath() (*sphinx.PaymentPath, error) {
294294
return nil, err
295295
}
296296

297-
// TODO(roasbeef): make better API for NewHopPayload?
298-
payload, err = sphinx.NewHopPayload(nil, b.Bytes())
297+
payload, err = sphinx.NewTLVHopPayload(b.Bytes())
299298
if err != nil {
300299
return nil, err
301300
}

docs/release-notes/release-notes-0.17.0.md

+4
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@
161161
* [Fixed a validation bug](https://github.com/lightningnetwork/lnd/pull/7177) in
162162
`channel_type` negotiation.
163163

164+
* [The `lightning-onion` repo version was
165+
updated](https://github.com/lightningnetwork/lnd/pull/7877) in preparation for
166+
work to be done on route blinding in LND.
167+
164168
## Code Health
165169

166170
* Updated [our fork for serializing protobuf as JSON to be based on the

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ require (
1919
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1
2020
github.com/go-errors/errors v1.0.1
2121
github.com/golang-migrate/migrate/v4 v4.16.1
22-
github.com/golang/protobuf v1.5.2
2322
github.com/gorilla/websocket v1.4.2
2423
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
2524
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
@@ -36,7 +35,7 @@ require (
3635
github.com/lib/pq v1.10.3
3736
github.com/lightninglabs/neutrino v0.16.0
3837
github.com/lightninglabs/neutrino/cache v1.1.1
39-
github.com/lightningnetwork/lightning-onion v1.2.1-0.20221202012345-ca23184850a1
38+
github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f
4039
github.com/lightningnetwork/lnd/cert v1.2.1
4140
github.com/lightningnetwork/lnd/clock v1.1.0
4241
github.com/lightningnetwork/lnd/healthcheck v1.2.2
@@ -49,7 +48,7 @@ require (
4948
github.com/miekg/dns v1.1.43
5049
github.com/ory/dockertest/v3 v3.10.0
5150
github.com/prometheus/client_golang v1.11.1
52-
github.com/stretchr/testify v1.8.1
51+
github.com/stretchr/testify v1.8.2
5352
github.com/tv42/zbase32 v0.0.0-20160707012821-501572607d02
5453
github.com/urfave/cli v1.22.9
5554
go.etcd.io/etcd/client/pkg/v3 v3.5.7
@@ -98,6 +97,7 @@ require (
9897
github.com/fergusstrange/embedded-postgres v1.10.0 // indirect
9998
github.com/gogo/protobuf v1.3.2 // indirect
10099
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
100+
github.com/golang/protobuf v1.5.2 // indirect
101101
github.com/golang/snappy v0.0.4 // indirect
102102
github.com/google/btree v1.0.1 // indirect
103103
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect

go.sum

+4-3
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ github.com/lightninglabs/neutrino/cache v1.1.1 h1:TllWOSlkABhpgbWJfzsrdUaDH2fBy/
440440
github.com/lightninglabs/neutrino/cache v1.1.1/go.mod h1:XJNcgdOw1LQnanGjw8Vj44CvguYA25IMKjWFZczwZuo=
441441
github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display h1:pRdza2wleRN1L2fJXd6ZoQ9ZegVFTAb2bOQfruJPKcY=
442442
github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
443-
github.com/lightningnetwork/lightning-onion v1.2.1-0.20221202012345-ca23184850a1 h1:Wm0g70gkcAu2pGpNZwfWPSVOY21j8IyYsNewwK4OkT4=
444-
github.com/lightningnetwork/lightning-onion v1.2.1-0.20221202012345-ca23184850a1/go.mod h1:7dDx73ApjEZA0kcknI799m2O5kkpfg4/gr7N092ojNo=
443+
github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f h1:Pua7+5TcFEJXIIZ1I2YAUapmbcttmLj4TTi786bIi3s=
444+
github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f/go.mod h1:c0kvRShutpj3l6B9WtTsNTBUtjSmjZXbJd9ZBRQOSKI=
445445
github.com/lightningnetwork/lnd/cert v1.2.1 h1:CTrTcU0L66J73oqdRLVfNylZyp1Fh97ZezX6IuzkrqE=
446446
github.com/lightningnetwork/lnd/cert v1.2.1/go.mod h1:04JhIEodoR6usBN5+XBRtLEEmEHsclLi0tEyxZQNP+w=
447447
github.com/lightningnetwork/lnd/clock v1.0.1/go.mod h1:KnQudQ6w0IAMZi1SgvecLZQZ43ra2vpDNj7H/aasemg=
@@ -598,8 +598,9 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
598598
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
599599
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
600600
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
601-
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
602601
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
602+
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
603+
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
603604
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
604605
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
605606
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=

routing/route/route.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (r *Route) ToSphinxPath() (*sphinx.PaymentPath, error) {
451451
hopData.NextAddress[:], nextHop,
452452
)
453453

454-
payload, err = sphinx.NewHopPayload(&hopData, nil)
454+
payload, err = sphinx.NewLegacyHopPayload(&hopData)
455455
if err != nil {
456456
return nil, err
457457
}
@@ -468,8 +468,7 @@ func (r *Route) ToSphinxPath() (*sphinx.PaymentPath, error) {
468468
return nil, err
469469
}
470470

471-
// TODO(roasbeef): make better API for NewHopPayload?
472-
payload, err = sphinx.NewHopPayload(nil, b.Bytes())
471+
payload, err = sphinx.NewTLVHopPayload(b.Bytes())
473472
if err != nil {
474473
return nil, err
475474
}

0 commit comments

Comments
 (0)