Add env variable to enable/disable sending txs to L2 from watcher peer (#293)

* Add flag to enable/disable watcher peer L2 txs

* Update watcher-ts version in readme

Former-commit-id: d3715d19520be01a3a5e98ce6ce9874f72cc568a
This commit is contained in:
2023-04-10 10:42:56 +05:30
committed by GitHub
parent a8815924c6
commit 18279fcef3
7 changed files with 28 additions and 16 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ Checkout to the required versions and branches in repos
```bash
# watcher-ts
cd ~/cerc/watcher-ts
git checkout v0.2.34
git checkout v0.2.35
# react-peer
cd ~/cerc/react-peer
+3 -2
View File
@@ -17,7 +17,7 @@ Checkout to the required versions and branches in repos:
```bash
# watcher-ts
cd ~/cerc/watcher-ts
git checkout v0.2.34
git checkout v0.2.35
# MobyMask
cd ~/cerc/MobyMask
@@ -38,8 +38,9 @@ This should create the required docker images in the local image registry
* In [mobymask-params.env](../../config/watcher-mobymask-v2/mobymask-params.env) file set `DEPLOYED_CONTRACT` to existing deployed mobymask contract address
* Setting `DEPLOYED_CONTRACT` will skip contract deployment when running stack
* `ENABLE_PEER_L2_TXS` is used to enable/disable sending txs to L2 chain from watcher peer.
* Update the [optimism-params.env](../../config/watcher-mobymask-v2/optimism-params.env) file with Optimism endpoints and other params for the Optimism running separately
* If `PRIVATE_KEY_PEER` is not set the inline watcher peer will not send txs to L2 on receiving P2P network messages
* `PRIVATE_KEY_PEER` is used by watcher peer to send txs to L2 chain
* NOTE:
* Stack Orchestrator needs to be run in [`dev`](/docs/CONTRIBUTING.md#install-developer-mode) mode to be able to edit the env file
* If Optimism is running on the host machine, use `host.docker.internal` as the hostname to access the host port