Skip to content

Commit

Permalink
PRT-194 fix cache be not being loaded properly (#198)
Browse files Browse the repository at this point in the history
* fix blocking code being before cache-be init

* add cache be also for grpc providers in scripts

* missing sending the chainID in SetRelay

* added optional flags for portal
  • Loading branch information
omerlavanet authored Dec 22, 2022
1 parent dfd9ec4 commit 94799ea
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion relayer/performance/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ func (cache *Cache) SetEntry(ctx context.Context, request *pairingtypes.RelayReq
return
}
// TODO: handle disconnections and SetRelay error types here
cache.client.SetRelay(ctx, &pairingtypes.RelayCacheSet{Request: request, ApiInterface: apiInterface, BlockHash: blockHash, Response: reply, Finalized: finalized, BucketID: bucketID})
cache.client.SetRelay(ctx, &pairingtypes.RelayCacheSet{Request: request, ApiInterface: apiInterface, BlockHash: blockHash, ChainID: chainID, Response: reply, Finalized: finalized, BucketID: bucketID})
}
48 changes: 24 additions & 24 deletions scripts/setup_providers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,32 +120,32 @@ screen -S jun1_providers -X screen -t win7 -X bash -c "source ~/.bashrc; lavad s
screen -S jun1_providers -X screen -t win8 -X bash -c "source ~/.bashrc; lavad server 127.0.0.1 2376 $JUNO_GRPC JUN1 grpc $EXTRA_PROVIDER_FLAGS --log_level debug --from servicer3 2>&1 | tee $LOGS_DIR/JUN1_2376.log"

# Setup Portals
screen -d -m -S portals bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3333 ETH1 jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_ETH_3333.log" && sleep 0.25
screen -S portals -X screen -t win1 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3334 COS3 rest --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS3_3334.log"
screen -S portals -X screen -t win2 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3335 COS3 tendermintrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS3_3335.log"
screen -S portals -X screen -t win3 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3336 FTM250 jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_FTM250_3336.log"
screen -S portals -X screen -t win4 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3337 COS4 rest --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS4_3337.log"
screen -S portals -X screen -t win5 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3338 COS4 tendermintrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS4_3338.log"
screen -S portals -X screen -t win6 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3339 GTH1 jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3339.log"
screen -S portals -X screen -t win7 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3340 LAV1 rest --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_LAV1_3340.log"
screen -S portals -X screen -t win8 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3341 LAV1 tendermintrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_LAV1_3341.log"
screen -S portals -X screen -t win9 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3342 CELO jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3342.log"
screen -S portals -X screen -t win10 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3343 COS5 rest --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3343.log"
screen -S portals -X screen -t win11 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3344 COS5 tendermintrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3344.log"
screen -S portals -X screen -t win12 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3345 ALFAJORES jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3345.log"
screen -S portals -X screen -t win13 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3346 ARB1 jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3346.log"
screen -S portals -X screen -t win14 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3347 STRK jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3347.log"
screen -S portals -X screen -t win15 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3348 APT1 rest --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3348.log"
screen -S portals -X screen -t win16 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3349 JUN1 rest --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3349.log"
screen -S portals -X screen -t win17 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3350 JUN1 tendermintrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3350.log"
screen -S portals -X screen -t win18 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3351 POLYGON1 jsonrpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3351.log"
screen -d -m -S portals bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3333 ETH1 jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_ETH_3333.log" && sleep 0.25
screen -S portals -X screen -t win1 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3334 COS3 rest $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS3_3334.log"
screen -S portals -X screen -t win2 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3335 COS3 tendermintrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS3_3335.log"
screen -S portals -X screen -t win3 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3336 FTM250 jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_FTM250_3336.log"
screen -S portals -X screen -t win4 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3337 COS4 rest $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS4_3337.log"
screen -S portals -X screen -t win5 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3338 COS4 tendermintrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_COS4_3338.log"
screen -S portals -X screen -t win6 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3339 GTH1 jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3339.log"
screen -S portals -X screen -t win7 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3340 LAV1 rest $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_LAV1_3340.log"
screen -S portals -X screen -t win8 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3341 LAV1 tendermintrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_LAV1_3341.log"
screen -S portals -X screen -t win9 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3342 CELO jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3342.log"
screen -S portals -X screen -t win10 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3343 COS5 rest $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3343.log"
screen -S portals -X screen -t win11 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3344 COS5 tendermintrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3344.log"
screen -S portals -X screen -t win12 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3345 ALFAJORES jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3345.log"
screen -S portals -X screen -t win13 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3346 ARB1 jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3346.log"
screen -S portals -X screen -t win14 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3347 STRK jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3347.log"
screen -S portals -X screen -t win15 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3348 APT1 rest $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3348.log"
screen -S portals -X screen -t win16 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3349 JUN1 rest $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3349.log"
screen -S portals -X screen -t win17 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3350 JUN1 tendermintrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3350.log"
screen -S portals -X screen -t win18 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3351 POLYGON1 jsonrpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3351.log"

# grpc portals
screen -S portals -X screen -t win19 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3352 LAV1 grpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3352.log"
screen -S portals -X screen -t win20 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3353 COS3 grpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3353.log"
screen -S portals -X screen -t win21 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3354 COS4 grpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3354.log"
screen -S portals -X screen -t win22 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3355 JUN1 grpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3355.log"
screen -S portals -X screen -t win23 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3356 COS5 grpc --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3356.log"
screen -S portals -X screen -t win19 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3352 LAV1 grpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3352.log"
screen -S portals -X screen -t win20 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3353 COS3 grpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3353.log"
screen -S portals -X screen -t win21 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3354 COS4 grpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3354.log"
screen -S portals -X screen -t win22 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3355 JUN1 grpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3355.log"
screen -S portals -X screen -t win23 -X bash -c "source ~/.bashrc; lavad portal_server 127.0.0.1 3356 COS5 grpc $EXTRA_PORTAL_FLAGS --log_level debug --from user1 2>&1 | tee $LOGS_DIR/PORTAL_3356.log"



Expand Down

0 comments on commit 94799ea

Please sign in to comment.