From 58bc35bb355e2c5a8f902c68eed2d176a102ce33 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 16 Dec 2024 19:56:10 +0200 Subject: [PATCH] Optional arg fixed --- bittensor/utils/axon_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bittensor/utils/axon_utils.py b/bittensor/utils/axon_utils.py index 3c73c8080d..d042358246 100644 --- a/bittensor/utils/axon_utils.py +++ b/bittensor/utils/axon_utils.py @@ -21,7 +21,9 @@ NANOSECONDS_IN_SECOND = 1_000_000_000 -def allowed_nonce_window_ns(current_time_ns: int, synapse_timeout: Optional[float]): +def allowed_nonce_window_ns( + current_time_ns: int, synapse_timeout: Optional[float] = None +) -> int: """ Calculates the allowed window for a nonce in nanoseconds.