Skip to content

Commit 648dfdf

Browse files
committed
fix observer port allocation
1 parent 148394b commit 648dfdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration/localnet/bootstrap.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func displayPortAssignments() {
187187
}
188188
fmt.Println()
189189
for i := 0; i < observerCount; i++ {
190-
fmt.Printf("Observer %d Flow API will be accessible at localhost:%d\n", i+1, (accessCount*2)+(AccessAPIPort)+2*i)
190+
fmt.Printf("Observer %d Flow API will be accessible at localhost:%d\n", i+1, (accessCount*3)+(AccessAPIPort)+2*i)
191191
}
192192
}
193193

@@ -493,8 +493,8 @@ func prepareObserverService(i int, observerName string, agPublicKey string) Serv
493493
// the same from the guest's perspective, the host port numbering accounts for the presence
494494
// of multiple pairs of listeners on the host to avoid port collisions. Observer listener pairs
495495
// are numbered just after the Access listeners on the host network by prior convention
496-
fmt.Sprintf("%d:%d", (accessCount*2)+AccessAPIPort+(2*i), RPCPort),
497-
fmt.Sprintf("%d:%d", (accessCount*2)+AccessAPIPort+(2*i)+1, SecuredRPCPort),
496+
fmt.Sprintf("%d:%d", (accessCount*3)+AccessAPIPort+(2*i), RPCPort),
497+
fmt.Sprintf("%d:%d", (accessCount*3)+AccessAPIPort+(2*i)+1, SecuredRPCPort),
498498
}
499499
return observerService
500500
}

0 commit comments

Comments
 (0)