From ae0fa366f0e2648431e461c3d669b9c9a3a67dad Mon Sep 17 00:00:00 2001 From: ixje Date: Thu, 26 Oct 2023 18:41:18 +0200 Subject: [PATCH] api: increase receipt timeout value fetching to fix `Windows` loop time inaccuracy (#291) --- 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: