-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
forkoff integration finished - draft1
- Loading branch information
ignazio
committed
Nov 29, 2021
1 parent
e43031e
commit fcd7a52
Showing
2 changed files
with
31 additions
and
66 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
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 |
---|---|---|
|
@@ -31,10 +31,22 @@ source ./.env | |
# None | ||
####################################### | ||
function fork_off_init() { | ||
# chain-spec-raw already existing | ||
|
||
if [[ -z ${DATA_PATH}/storage.json ]]; then | ||
sudo scp [email protected]:/home/ignazio/storage.json \ | ||
${DATA_PATH}/storage.json | ||
fi | ||
|
||
if [[ -z ${DATA_PATH}/schema.json ]]; then | ||
cp ../../types/augment/all/defs.json \ | ||
${DATA_PATH}/schema.json | ||
fi | ||
|
||
id=$(docker create joystream/node:${TARGET_RUNTIME_TAG}) | ||
docker cp $id:/joystream/runtime.compact.wasm ${DATA_PATH}/runtime.wasm | ||
cat ${DATA_PATH}/runtime.wasm | hexdump -ve \'/1 "%02x"\ > ${DATA_PATH}/runtime.hex | ||
|
||
npm start | ||
} | ||
####################################### | ||
|
@@ -161,4 +173,3 @@ function main { | |
# main entrypoint | ||
main | ||
cleanup | ||
|