From 1046eed3318895ebb1651bcc49f1581d6aee5b22 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Thu, 17 Jun 2021 17:09:04 +0300 Subject: [PATCH] https://github.com/palkeo/panoramix/issues/10 --- panoramix/decompiler.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panoramix/decompiler.py b/panoramix/decompiler.py index c3bbdf34..256db3cc 100644 --- a/panoramix/decompiler.py +++ b/panoramix/decompiler.py @@ -6,7 +6,7 @@ import sys from contextlib import redirect_stdout -import timeout_decorator +from wrapt_timeout_decorator import timeout import panoramix.folder as folder from panoramix.contract import Contract @@ -155,7 +155,7 @@ def _decompile_with_loader(loader, only_func_name=None) -> Decompilation: if target > 1 and loader.lines[target][1] == "jumpdest": target += 1 - @timeout_decorator.timeout(60 * 3, timeout_exception=TimeoutInterrupt) + @timeout(60 * 3, timeout_exception=TimeoutInterrupt, use_signals=False) def dec(): trace = VM(loader).run(target, stack=stack, timeout=60) explain("Initial decompiled trace", trace[1:]) diff --git a/setup.py b/setup.py index a7ed5d92..3e2a558e 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ "coloredlogs", "requests", "web3", - "timeout_decorator", + "wrapt_timeout_decorator", "appdirs", ]