You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: etheno/__main__.py
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,24 @@
8
8
from .clientimportRpcProxyClient
9
9
from .differentialsimportDifferentialTester
10
10
from .echidnaimportechidna_exists, EchidnaPlugin, install_echidna
11
-
from .ethenoimportapp, EthenoView, GETH_DEFAULT_RPC_PORT, ManticoreClient, ETHENO, VERSION_NAME
11
+
from .ethenoimportapp, EthenoView, GETH_DEFAULT_RPC_PORT, ETHENO, VERSION_NAME
12
12
from .genesisimportAccount, make_accounts, make_genesis
13
13
from .synchronizationimportAddressSynchronizingClient, RawTransactionClient
14
14
from .utilsimportclear_directory, decode_value, find_open_port, format_hex_address, ynprompt
15
15
from . importEtheno
16
16
from . importganache
17
17
from . importgeth
18
18
from . importlogger
19
-
from . importmanticoreutils
20
19
from . importparity
21
20
from . importtruffle
22
21
22
+
try:
23
+
from .manticoreclientimportManticoreClient
24
+
from . importmanticoreutils
25
+
MANTICORE_INSTALLED=True
26
+
exceptModuleNotFoundError:
27
+
MANTICORE_INSTALLED=False
28
+
23
29
defmain(argv=None):
24
30
parser=argparse.ArgumentParser(description='An Ethereum JSON RPC multiplexer and Manticore wrapper')
25
31
parser.add_argument('--debug', action='store_true', default=False, help='Enable debugging from within the web server')
@@ -238,12 +244,19 @@ def main(argv = None):
238
244
239
245
manticore_client=None
240
246
ifargs.manticore:
247
+
ifnotMANTICORE_INSTALLED:
248
+
ETHENO.logger.error('Manticore is not installed! Running Etheno with Manticore requires Manticore version 0.2.2 or newer. Reinstall Etheno with Manticore support by running `pip3 install --user \'etheno[manticore]\'`, or install Manticore separately with `pip3 install --user \'manticore\'`')
ETHENO.logger.warning(f"Unknown Manticore version {manticoreutils.manticore_version()}; it may not be new enough to have Etheno support!")
253
+
elifnotnew_enough:
254
+
ETHENO.logger.error(f"The version of Manticore installed is {manticoreutils.manticore_version()}, but the minimum required version with Etheno support is 0.2.2. We will try to proceed, but things might not work correctly! Please upgrade Manticore.")
0 commit comments