Files
pos_network_signer/README.md
T
2023-09-13 08:32:09 +00:00

3.0 KiB

Running SANR Network node in signer mode

Minimum requirements

1. Environment setup

1.1 Create a directory and Navigate to it

mkdir -p /opt/sanchain/signer
cd /opt/sanchain/signer

1.2 Clone the Project

git clone git@gitlab.mind-dev.com:santiopts/pos/pos_network_signer.git .

1.3 Configuration and settings edit

mv env.example .env
nano .env
  • EXTERNAL_IP=Server external address
  • NUM_VALIDATORS=Number of validators
  • REWARD_RECIPIENT_ADDRESS=Reward recipient address (you should have access to this account)

2. Run ./scripts/create_mnemonic.sh

Follow these steps:

  • Choose language: English
  • Specify the number of validators: 1
  • Enter account address from .env (REWARD_RECIPIENT_ADDRESS) (you should have access to this account)
  • Confirm account address
  • Choose language: English
  • Enter a password for the validator keystore (record and store in a secure place)
  • Confirm the password
  • The generated mnemonic will be displayed (record and store in a secure place)
  • Enter the mnemonic again After successful execution, a files/validator_keys directory will be created.

3. Send files/validator_keys/deposit_data-*.json to info@sanr.network

4. Validator wallet creation

4.1 Create a password for the validator wallet

echo "someStrongPassword" > files/validator.txt

(replace someStrongPassword to password which you want to use)

4.2 Execute the script ./scripts/create_validator_wallet.sh

  • Wallet password: Enter the password created in Step 4.1
  • Enter the password for your imported accounts: Enter the password for the validator keystore from Step 2 After successful execution, a files/wallet folder will be created.

5. Startup

5.1 Create Geth home directory

./scripts/gen_home_dir_geth.sh

5.2 Configure the Node Type

ln -s docker-compose-validator.yml docker-compose.yml

5.3 Launch the Project

docker compose up -d

Running SANR Network node in readonly mode

Minimum requirements

1. Environment setup

1.1 Create a directory and Navigate to it

mkdir -p /opt/sanchain/readonly
cd /opt/sanchain/readonly

1.2 Clone the Project

git clone git@gitlab.mind-dev.com:santiopts/pos/pos_network_signer.git .

1.3 Configuration and settings edit

mv env.example .env
nano .env
  • EXTERNAL_IP=Server external address

5.2 Configure the Node Type

ln -s docker-compose-readonly.yml docker-compose.yml

5.3 Launch the Project

docker compose up -d