Compare commits

..

No commits in common. "main" and "pallet-slow-clap" have entirely different histories.

6 changed files with 14 additions and 44 deletions

14
Cargo.lock generated
View File

@ -3528,7 +3528,7 @@ dependencies = [
[[package]]
name = "ghost-cli"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"cfg-if",
"clap 4.5.4",
@ -3584,7 +3584,7 @@ dependencies = [
[[package]]
name = "ghost-machine-primitives"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"lazy_static",
"sc-sysinfo",
@ -3593,7 +3593,7 @@ dependencies = [
[[package]]
name = "ghost-metrics"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"assert_cmd",
"bs58 0.5.1",
@ -3648,7 +3648,7 @@ dependencies = [
[[package]]
name = "ghost-networks"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"frame-benchmarking",
"frame-support",
@ -3665,7 +3665,7 @@ dependencies = [
[[package]]
name = "ghost-node"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"assert_cmd",
"color-eyre",
@ -3696,7 +3696,7 @@ dependencies = [
[[package]]
name = "ghost-rpc"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"ghost-core-primitives",
"jsonrpsee",
@ -3748,7 +3748,7 @@ dependencies = [
[[package]]
name = "ghost-service"
version = "0.7.197"
version = "0.7.196"
dependencies = [
"assert_matches",
"async-trait",

View File

@ -17,7 +17,7 @@ homepage.workspace = true
[workspace.package]
license = "GPL-3.0-only"
authors = ["571nky", "57r37ch", "f4750"]
version = "0.7.197"
version = "0.7.196"
edition = "2021"
homepage = "https://ghostchain.io"
repository = "https://git.ghostchain.io/ghostchain/ghost-node"

View File

@ -320,7 +320,7 @@ Only `port 30333` should be opened.
Press _CTRL+C_ to stop the node.
# Launching GHOST TestNet 3.1
# Launching GHOST TestNet 2.0
Switch to main GIT branch:
```bash
@ -437,8 +437,9 @@ sha256sum /etc/ghost/casper.json
You should see:
```
ad653233c978bfd00c5e4525b17628632bc4319c5f5f4b4dcc2f050ef3c3d145
5aeb6fd5b9b14bdbc1a61600655b5217ded7c1b7cb05bd32929354e88935ae97
```
![images/img_29.png](images/img_29.png)
Create running `ghost-node` service that starts on system boot using `--unit-file` flag.
And we must set up the `ghost-node` launch command by setting arguments using
@ -491,7 +492,7 @@ Official **Boot Node** addresses:
/dns/bootnode70.chain.ghostchain.io/tcp/30333/p2p/12D3KooWP3h5dSdqcpvsCr7fp1jyfqDj291QDZ68a4gY6VQ8T1nW
```
A full list of available **Boot Nodes** can be found on [the guide page](https://blog.ghostchain.io/launching-ghost-testnet-3-1/#Boot_Node).
A full list of available **Boot Nodes** can be found on [the guide page](https://blog.ghostchain.io/launching-ghost-testnet-2-0/#Boot_Node).
![images/img_33.png](images/img_33.png)
@ -507,7 +508,7 @@ Type `y` and press _Enter_ for create dedicated user for running `ghost-node`:
![images/img_36.png](images/img_36.png)
**DO NOT start and DO NOT enable** `ghost-node.service` (press _Enter_):
**DO NOT start and enable** `ghost-node.service` press _Enter_:
![images/img_37.png](images/img_37.png)

BIN
images/img_29.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -7,7 +7,6 @@ INSERT_KEYS=false
UNIT_FILE=false
SKIP_BUILD=false
SET_ENVIRONMENT=false
VALIDATE=false
EXECUTABLE_PATH="/usr/bin/"
SPECIFICATION_PATH="/etc/ghost/"
BASE_PATH="/var/lib/ghost"
@ -89,7 +88,6 @@ help() {
echo -e "-k, --check-keys\n\tCheck if your keys are already included in 'ghosties' file."
echo -e "-y, --insert-keys\n\tInsert session keys to the keystore via JSON RPC."
echo -e "-r, --release\n\tCompile node with '--release' flag."
echo -e "-v, --validate\n\tManipulate '--validate' flag in CLI_ARGS."
echo -e "-p, --profile\n\tCompile node with '--profile [PROFILE]' flag."
echo -e "-f, --features\n\tCompilation features '--features=\"FEATURE1,FEATURE2\"'"
echo -e "-e, --executable-path\n\tPath to the executable ('/usr/lib/' is default)."
@ -135,9 +133,6 @@ while [ $# -gt 0 ]; do
RELEASE="--release"
TARGET="release"
;;
--validate|-v)
VALIDATE=true
;;
--profile*|-p*)
if [[ "$1" != *=* ]]; then shift; fi
RELEASE="--profile=${1#*=}"
@ -268,32 +263,6 @@ if [[ ! -z $RELEASE ]]; then
fi
fi
if [[ $VALIDATE = true ]]; then
cli_args=$(cat /etc/default/ghost)
if prompt "[?] turn on validator mode?"; then
if [[ $cli_args == *"--validator"* ]]; then
echo "[+] '--validator' flag already exists in CLI_ARGS, check /etc/default/ghost"
else
cli_args="${cli_args%?} --validator\""
echo "[+] '--validator' flag inserted to CLI_ARGS, check /etc/default/ghost"
fi
else
cli_args=${cli_args// --validator/}
echo "[+] '--validator' flag removed"
fi
echo "[+] trying to store CLI updated arguments to '/etc/default/ghost'"
echo "$cli_args" | sudo tee /etc/default/ghost > /dev/null
echo "[+] updated CLI arguments stored in '/etc/default/ghost'"
if prompt "[?] do you want to restart 'ghost-node.service' now?"; then
sudo systemctl status ghost-node.service
echo "[+] 'ghost-node.service' succefully restarted, new CLI_ARGS applied"
else
echo "[+] don't forget to restart ghost node service manually"
fi
fi
if [[ $MAKE_GLOBAL = true ]]; then
cd $PROJECT_FOLDER
echo "[+] trying to copy executable to '$EXECUTABLE_PATH'"

File diff suppressed because one or more lines are too long