Skip to content

Commit 316088f

Browse files
committed
reduce maximum question index to 8 and remove node address from connection request message
1 parent 35c3a45 commit 316088f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/pqnstack/app/api/routes/coordination.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ async def ask_user_for_follow_handler() -> None:
160160
if state.following_requested:
161161
logger.debug("Websocket detected a follow request, asking user for response.")
162162
if websocket.client_state.name == "CONNECTED":
163-
await websocket.send_text(
164-
f"Do you want to accept a connection from {state.leaders_name} ({state.leaders_address})?"
165-
)
163+
await websocket.send_text(f"Do you want to accept a connection from {state.leaders_name}?")
166164
else:
167165
logger.debug("WebSocket not connected, cannot send message")
168166
break

src/pqnstack/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class QKDSettings(BaseModel):
3030
request_hwp: tuple[str, str] = ("", "")
3131
bitstring_length: int = 6
3232
minimum_question_index: int = 1
33-
maximum_question_index: int = 20
33+
maximum_question_index: int = 8
3434
discriminating_threshold: int = 10
3535
measurement_config: MeasurementConfig = Field(default_factory=lambda: MeasurementConfig(integration_time_s=5))
3636

0 commit comments

Comments
 (0)