Geth additions

This commit is contained in:
ZigaMr 2022-05-07 18:30:45 +02:00
parent 22d98afa1c
commit 1873712c03
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@ case "$1" in
--quiet \ --quiet \
--pidfile $PIDFILE \ --pidfile $PIDFILE \
--make-pidfile \ --make-pidfile \
--startas /bin/bash -- -c "poetry run python listener.py" --startas /bin/bash -- -c "poetry run python listener.py $2"
echo "." echo "."
;; ;;
stop) stop)
@ -42,7 +42,7 @@ case "$1" in
--quiet \ --quiet \
--pidfile $PIDFILE \ --pidfile $PIDFILE \
--make-pidfile \ --make-pidfile \
--startas /bin/bash -- -c "poetry run python listener.py" --startas /bin/bash -- -c "poetry run python listener.py $2"
echo "." echo "."
;; ;;

View File

@ -1,6 +1,7 @@
import asyncio import asyncio
import logging import logging
import os import os
import sys
import dramatiq import dramatiq
from aiohttp_retry import ExponentialRetry, RetryClient from aiohttp_retry import ExponentialRetry, RetryClient
@ -52,7 +53,7 @@ async def run():
priority=HIGH_PRIORITY, priority=HIGH_PRIORITY,
) )
inspector = MEVInspector(rpc) inspector = MEVInspector(rpc, type=sys.argv[1])
base_provider = get_base_provider(rpc) base_provider = get_base_provider(rpc)
while not killer.kill_now: while not killer.kill_now: