-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c287b20
commit 5f6f27b
Showing
4 changed files
with
42 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
set -ex | ||
set -e | ||
|
||
TEZ_VAR=/var/tezos | ||
TEZ_BIN=/usr/local/bin | ||
ROLLUP_DATA_DIR="$TEZ_VAR/rollup" | ||
EVM_DATA_DIR="$TEZ_VAR/evm" | ||
|
||
CMD="$TEZ_BIN/octez-evm-node run proxy \ | ||
with endpoint http://rollup-${MY_POD_NAME}:8932 \ | ||
--devmode \ | ||
--rpc-addr 0.0.0.0" | ||
set -x | ||
|
||
if [ ! -e "${EVM_DATA_DIR}/store/store.1.mapping" ]; then | ||
$TEZ_BIN/octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} --data-dir ${SEQUENCER_DATA_DIR} | ||
fi | ||
|
||
CMD="$TEZ_BIN/octez-evm-node run observer \ | ||
--evm-node-endpoint ${EVM_NODE_ENDPOINT} \ | ||
--rollup-node-endpoint http://127.0.0.1:8932 \ | ||
--data-dir ${EVM_DATA_DIR} \ | ||
--preimages-endpoint ${EVM_WASM_ENDPOINT} \ | ||
--rpc-addr 0.0.0.0 \ | ||
--rpc-port 8545 \ | ||
--cors-origins '*' \ | ||
--cors-headers '*' | ||
exec $CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set -e | ||
|
||
TEZ_VAR=/var/tezos | ||
TEZ_BIN=/usr/local/bin | ||
ROLLUP_DATA_DIR="$TEZ_VAR/rollup" | ||
SEQUENCER_DATA_DIR="$TEZ_VAR/evm" | ||
|
||
set -x | ||
|
||
if [ ! -e "/var/tezos/sequencer/store/store.1.mapping" ]; then | ||
octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} \ | ||
--data-dir ${SEQUENCER_DATA_DIR} | ||
fi | ||
|
||
|
||
CMD="$TEZ_BIN/octez-evm-node run sequencer \ | ||
with endpoint http://127.0.0.1:8932 \ | ||
signing with edsk3rw6fcwjPe5xkGWAbSquLDQALKP8XyMhy4c6PQGr7qQKTYa8rX \ | ||
--data-dir ${SEQUENCER_DATA_DIR} \ | ||
--time-between-blocks 6 \ | ||
--rpc-addr 0.0.0.0" | ||
|
||
exec $CMD |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters