Skip to content

Commit 56a62e1

Browse files
committed
bench: use 20 hops for the benchmark
Turns out in practice, the 27 hop limit is actually _too large_, so we fall back to the old 20 hop limit for now. We'll want to circle back and emperically derive the _true_ hop limit.
1 parent f6a30e0 commit 56a62e1

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
@@ -21,7 +21,7 @@ func BenchmarkPathPacketConstruction(b *testing.B) {
2121
route PaymentPath
2222
)
2323

24-
for i := 0; i < NumMaxHops; i++ {
24+
for i := 0; i < 20; i++ {
2525
privKey, err := btcec.NewPrivateKey()
2626
if err != nil {
2727
b.Fatalf("unable to generate key: %v", privKey)

0 commit comments

Comments
 (0)