-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#453] Package for fedora and ubuntu
- Loading branch information
1 parent
f93bb7b
commit 73ca37e
Showing
3 changed files
with
92 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# vim: ft=sh | ||
# SPDX-FileCopyrightText: 2022 Oxhead Alpha | ||
# SPDX-License-Identifier: LicenseRef-MIT-OA | ||
|
||
# shellcheck disable=SC2034 | ||
DATA_DIR="/var/lib/tezos/.tezos-client" | ||
NODE_RPC_ENDPOINT="http://localhost:8732" | ||
ROLLUP_NODE_RPC_ENDPOINT="127.0.0.1:8472" | ||
MODE="observer" | ||
ROLLUP_ALIAS="rollup" |
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
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,22 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-FileCopyrightText: 2022 Oxhead Alpha | ||
# SPDX-License-Identifier: LicenseRef-MIT-OA | ||
|
||
set -euo pipefail | ||
|
||
# $PROTOCOL should be defined in the system unit environment | ||
node="/usr/bin/tezos-tx-rollup-node-$PROTOCOL" | ||
tezos_client="/usr/bin/tezos-client" | ||
|
||
"$node" init "$MODE" config \ | ||
for "$ROLLUP_ALIAS" \ | ||
--data-dir "$DATA_DIR" \ | ||
--rpc-addr "$ROLLUP_NODE_RPC_ENDPOINT" \ | ||
--force | ||
|
||
# Waiting till node start to respond | ||
while ! "$tezos_client" --endpoint "$NODE_RPC_ENDPOINT" rpc list &> /dev/null; do sleep 1; done | ||
|
||
"$node" --endpoint "$NODE_RPC_ENDPOINT" \ | ||
run "$MODE" for "$ROLLUP_ALIAS" \ | ||
--data-dir "$DATA_DIR" & |