Skip to content

Commit 7291f19

Browse files
committed
bench_test: pass incoming cltv to ProcessOnionPacket
1 parent d741650 commit 7291f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func BenchmarkProcessPacket(b *testing.B) {
6868
pkt *ProcessedPacket
6969
)
7070
for i := 0; i < b.N; i++ {
71-
pkt, err = path[0].ProcessOnionPacket(sphinxPacket, nil)
71+
pkt, err = path[0].ProcessOnionPacket(sphinxPacket, nil, uint32(i))
7272
if err != nil {
7373
b.Fatalf("unable to process packet %d: %v", i, err)
7474
}

0 commit comments

Comments
 (0)