From 3edbc94c29b6d69a685380de8467426e9060bca2 Mon Sep 17 00:00:00 2001 From: Erik van den Brink Date: Thu, 26 Oct 2023 18:36:46 +0200 Subject: [PATCH] api: increase receipt timeout value fetching to fix `Windows` loop time inaccuracy --- neo3/api/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo3/api/wrappers.py b/neo3/api/wrappers.py index ab0a78e..dd1a9ad 100644 --- a/neo3/api/wrappers.py +++ b/neo3/api/wrappers.py @@ -615,7 +615,7 @@ async def _get_receipt_time_values(self) -> tuple[float, float]: result.protocol.ms_per_block / 1000 ) / 5 timeout = self._receipt_timeout = ( - result.protocol.ms_per_block / 1000 + (result.protocol.ms_per_block / 1000) * 2 ) + self._receipt_retry_delay return delay, timeout else: