Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

fix: readme script updated, miscellaneous added as gitmodule #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ working/
build/
dist/
*.egg-info/
certs/
results/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "miscellaneous"]
path = miscellaneous
url = https://github.com/symbol/miscellaneous.git
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,25 @@ For pull to work, certificates must be placed in puller/certs/
To produce certificates follow the instructions for generating keys and certs in the [symbol node guide](https://docs.symbolplatform.com/guides/network/running-a-symbol-node-manually.html).

```sh
git clone https://github.com/symbol/miscellaneous.git
# install miscellaneous dependencies
git submodule update --init
cd ./miscellaneous && python -m pip install -r requirements.txt && cd ..

cd puller
PYTHONPATH=../miscellaneous ./pull.sh
cd ..
# generate certificates and run puller
cd ./puller \
&& mkdir -p certs \
&& cd certs \
&& curl -O https://docs.symbolplatform.com/_static/bash/cert-generate.sh && chmod +x cert-generate.sh

python -m webapp.app --resources ./resources
## save an arbitrary mainnet privatekey and generate certificates
echo 393C4BB001D6236FDB41F2D2E5DC3CEF5B939A83730F0AB7127935F2DDA24704 >> private.main.txt \
&& ./cert-generate.sh && cd ..

mkdir -p results && PYTHONPATH=../miscellaneous && ./pull.sh ./results 10 && cd ..

# install nodewatch dependencies & run the nodewatch app
python -m pip install -r requirements.txt

echo RESOURCES_PATH=\'./puller/results/\' > ./nodewatch/config.py
NODEWATCH_SETTINGS=config.py && FLASK_APP=nodewatch && flask run
```
1 change: 1 addition & 0 deletions miscellaneous
Submodule miscellaneous added at 63d99c
2 changes: 1 addition & 1 deletion puller/pull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo "[$(date)] crawling Symbol network"
python3 -m network.nodes \
--resources ./networks/symbol.yaml \
--thread-count 64 \
--certs ./cert \
--certs ./certs \
--output "$1/symbol_nodes.json" \
--timeout "$2"

Expand Down