Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Hrycyszyn 5bdf0fe1e4 Merge branch 'release/v0.12.0' of github.com:nymtech/nym into release/v0.12.0 2021-12-21 11:58:28 +00:00
Dave Hrycyszyn 12d96240cf Removing old scripts 2021-12-21 11:58:21 +00:00
2 changed files with 0 additions and 90 deletions
-30
View File
@@ -1,30 +0,0 @@
# Copyright 2020 - The Nym Mixnet Authors
# SPDX-License-Identifier: Apache-2.0
#!/bin/bash
# Copyright 2020 Nym
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# set CHANGELOG_GITHUB_TOKEN in your .bashrc file
# For each version, you can add a release summary with text, images, gif animations, etc, and show new features and notes clearly to the user. This is done using GitHub metadata.
# Example: adding the release summary for v1.0.0:
# 1. Create a new GitHub Issue
# 2. In the Issue's Description field, add your release summary content
# 3. Set the Issue Label `release-summary` and add it to the GitHub Milestone `v1.0.0`
# 4. Close the Issue and execute `github-changelog-generator`
github_changelog_generator -u nymtech -p nym --exclude-tags 0.1.0 --token "$CHANGELOG_GITHUB_TOKEN"
-60
View File
@@ -1,60 +0,0 @@
# Copyright 2020 - The Nym Mixnet Authors
# SPDX-License-Identifier: Apache-2.0
#!/bin/bash
#// Copyright 2020 The Nym Mixnet Authors
#//
#// Licensed under the Apache License, Version 2.0 (the "License");
#// you may not use this file except in compliance with the License.
#// You may obtain a copy of the License at
#//
#// http://www.apache.org/licenses/LICENSE-2.0
#//
#// Unless required by applicable law or agreed to in writing, software
#// distributed under the License is distributed on an "AS IS" BASIS,
#// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#// See the License for the specific language governing permissions and
#// limitations under the License.
MAX_LAYERS=3
NUMMIXES=3
function kill_old() {
echo "Killing old testnet processes..."
killall nym-mixnode
killall nym-gateway
killall nym-client
}
if [ $# -ne 1 ]; then
echo "Expected a single argument to be passed - the directory server (that you should have independently started locally!)"
exit 1
fi
DIR=$1
echo "Press CTRL-C to stop."
kill_old
export RUST_LOG=warning
# NOTE: If we wanted to suppress stdout and stderr, replace `&` with `> /dev/null 2>&1 &` in the `run`
# cargo run --bin nym-gateway -- init --id gateway-local --mix-host 127.0.0.1:10000 --clients-host 127.0.0.1:10001 --directory $DIR
cargo run --release --bin nym-gateway -- run --id gateway-local &
sleep 1
# Note: to disable logging (or direct it to another output) modify the constant on top of mixnode or provider;
# Will make it later either configurable by flags or config file.
for (( j=0; j<$NUMMIXES; j++ )); do
let layer=j%MAX_LAYERS+1
cargo run --release --bin nym-mixnode -- init --id mix-local$j --host 127.0.0.1 --port $((9980+$j)) --layer $layer --directory $DIR
cargo run --release --bin nym-mixnode -- run --id mix-local$j &
sleep 1
done
# just run forever (so we'd get all network warnings in this window and you wouldn't get confused when you started another process here)
# also it seems that SIGINT is nicely passed to all processes so they kill themselves
tail -f /dev/null