Skip to content

Commit

Permalink
Fraud detector local fix (#994)
Browse files Browse the repository at this point in the history
* made fixes to local fraud detector

* minor revert

* minor update

* reverted changes to docker compose

* reverted changes to docker-compose.yml

* revert file back to original docker-compose.yml
  • Loading branch information
jemeza authored Jul 6, 2023
1 parent a0ff5a9 commit 2ae5a78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.8-slim
RUN pip3 install --no-cache-dir web3==5.31.4
COPY boba_community/fraud-detector/fraud-detector.py /
COPY boba_community/fraud-detector/packages/jsonrpclib /jsonrpclib
Expand Down
5 changes: 0 additions & 5 deletions boba_community/fraud-detector/fraud-detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ def status(*args):

rpc = [None]*4

rpc[1] = Web3(Web3.HTTPProvider(os.environ['L1_NODE_WEB3_URL']))
if 'rinkeby' in os.environ['L1_NODE_WEB3_URL']:
rpc[1].middleware_onion.inject(geth_poa_middleware, layer=0)
assert (rpc[1].isConnected())
logger.debug ("Connected to L1_NODE_WEB3_URL")

while True:
try:
Expand Down
7 changes: 4 additions & 3 deletions ops/up_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
if [[ $BUILD == 1 ]]; then
docker-compose -f $DOCKER_FILE build --parallel -- l2geth l1_chain
docker-compose -f $DOCKER_FILE build --parallel -- deployer dtl batch_submitter relayer integration_tests
docker-compose -f $DOCKER_FILE build --parallel -- boba_message-relayer-fast gas_oracle boba_deployer
docker-compose -f $DOCKER_FILE build --parallel -- fraud-detector monitor
docker-compose -f $DOCKER_FILE build --parallel -- boba_message-relayer-fast boba_deployer
docker-compose -f $DOCKER_FILE build --parallel -- verifier replica
docker-compose -f $DOCKER_FILE build fraud-detector

elif [[ $BUILD == 0 ]]; then
docker-compose -f "$DIR/$DOCKER_FILE" pull
echo 1
Expand All @@ -62,5 +63,5 @@ if [[ $DAEMON == 1 ]]; then
else
docker-compose \
-f "$DIR/$DOCKER_FILE" \
up --no-build -V
up --no-build -V --no-recreate
fi

0 comments on commit 2ae5a78

Please sign in to comment.