Use dfs by default

pull/335/head
Joran Honig 6 years ago
parent b797c3dce2
commit 80964a5d39
  1. 4
      mythril/laser/ethereum/svm.py

@ -23,7 +23,7 @@ class LaserEVM:
""" """
Laser EVM class Laser EVM class
""" """
def __init__(self, accounts, dynamic_loader=None, max_depth=float('inf'), execution_timeout=60): def __init__(self, accounts, dynamic_loader=None, max_depth=float('inf'), execution_timeout=60, strategy=None):
self.accounts = accounts self.accounts = accounts
self.nodes = {} self.nodes = {}
@ -33,7 +33,7 @@ class LaserEVM:
self.dynamic_loader = dynamic_loader self.dynamic_loader = dynamic_loader
self.work_list = [] self.work_list = []
self.strategy = DepthFirstSearchStrategy(self.work_list, max_depth) self.strategy = DepthFirstSearchStrategy(self.work_list, max_depth) if strategy is None else strategy
self.max_depth = max_depth self.max_depth = max_depth
self.execution_timeout = execution_timeout self.execution_timeout = execution_timeout

Loading…
Cancel
Save