Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def eth_uninstallFilter(filter_id):
return thor.uninstall_filter(filter_id)
def run_server(host, port, endpoint, keystore, passcode, log, debug):
try:
response = requests.options(endpoint)
response.raise_for_status()
except requests.exceptions.ConnectionError:
print("Unable to connect to Thor-Restful server.")
return
print(make_version())
print("Listening on %s:%s" % (host, port))
thor.set_endpoint(endpoint)
if keystore == "":
thor.set_accounts(solo())
else:
thor.set_accounts(_keystore(keystore, passcode))
app = web.Application()
app.router.add_post("/", lambda r: handle(r, log, debug))
app.router.add_options("/", lambda r: web.Response(headers=res_headers))
web.run_app(app, host=host, port=port)
async def debug_traceTransaction(tx_hash, params):
return await thor.trace_transaction(tx_hash)