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", ]