Skip to content

Commit 017c61d

Browse files
committed
multi: Update to latest lightning-onion version
1 parent 071120d commit 017c61d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

htlcswitch/hop/fuzz_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func FuzzHopData(f *testing.F) {
3939

4040
func FuzzHopPayload(f *testing.F) {
4141
f.Fuzz(func(t *testing.T, data []byte) {
42-
if len(data) > sphinx.MaxPayloadSize {
42+
if len(data) > sphinx.MaxRoutingPayloadSize {
4343
return
4444
}
4545

@@ -129,7 +129,7 @@ func FuzzPayloadIntermediateNoBlinding(f *testing.F) {
129129

130130
func fuzzPayload(f *testing.F, finalPayload, updateAddBlinded bool) {
131131
f.Fuzz(func(t *testing.T, data []byte) {
132-
if len(data) > sphinx.MaxPayloadSize {
132+
if len(data) > sphinx.MaxRoutingPayloadSize {
133133
return
134134
}
135135

routing/pathfind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig,
975975

976976
routingInfoSize := toNodeDist.routingInfoSize + payloadSize
977977
// Skip paths that would exceed the maximum routing info size.
978-
if routingInfoSize > sphinx.MaxPayloadSize {
978+
if routingInfoSize > sphinx.MaxRoutingPayloadSize {
979979
return
980980
}
981981

0 commit comments

Comments
 (0)