From 1873712c0348d343a82ba062368c18daf93a5758 Mon Sep 17 00:00:00 2001 From: ZigaMr Date: Sat, 7 May 2022 18:30:45 +0200 Subject: [PATCH] Geth additions --- listener | 4 ++-- listener.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/listener b/listener index e468db7..02b4e11 100755 --- a/listener +++ b/listener @@ -18,7 +18,7 @@ case "$1" in --quiet \ --pidfile $PIDFILE \ --make-pidfile \ - --startas /bin/bash -- -c "poetry run python listener.py" + --startas /bin/bash -- -c "poetry run python listener.py $2" echo "." ;; stop) @@ -42,7 +42,7 @@ case "$1" in --quiet \ --pidfile $PIDFILE \ --make-pidfile \ - --startas /bin/bash -- -c "poetry run python listener.py" + --startas /bin/bash -- -c "poetry run python listener.py $2" echo "." ;; diff --git a/listener.py b/listener.py index 123d2fe..93eb7d6 100644 --- a/listener.py +++ b/listener.py @@ -1,6 +1,7 @@ import asyncio import logging import os +import sys import dramatiq from aiohttp_retry import ExponentialRetry, RetryClient @@ -52,7 +53,7 @@ async def run(): priority=HIGH_PRIORITY, ) - inspector = MEVInspector(rpc) + inspector = MEVInspector(rpc, type=sys.argv[1]) base_provider = get_base_provider(rpc) while not killer.kill_now: