Skip to content

sp1r1don/Cil-core

 
 

Repository files navigation

Russian version of document

The installation process (Linux, macOS, Windows):

1. Git clone the project

git clone https://github.com/SilentNotaryEcosystem/Cil-core.git
cd Cil-core
git checkout tags/latest

3. Setup dependencies and run a Node.js App

npm install
node index.js // node install
node savePrivateKey.js` //write private key to file (keystore analog)

The installation process (Docker):

setup docker first manual for Digical Ocean then

sudo docker pull trueshura/cil-core-prod

then download & untar helper scripts

wget -t0 -c https://github.com/SilentNotaryEcosystem/Cil-core/releases/download/v0.2.0-staging/docker-scripts.tgz
tar fxz docker-scripts.tgz 

pick desired scenario & run script from corresponding directory

Settings for launch

The default options are set in file prod.conf.js (for production net) and devel.conf.js (for development net).

Parameter Description
listenAddr URL
port Specified port
seedAddr Seed address to run Node
rpcUser Username used to call the functions from Node
rpcPass Password used to call the functions from Node
rpcPort Port used to call the functions from Node
rpcAddress Address used to call the functions from Node
genesisHash The genesis block's hash to set up a test environment
conciliumDefContract The genesis block's contract to set up a test environment
privateKey Private key file to run a witness node
dbPath Directory for storing database files
seed Function used for the running node to be a seed (It will store and distribute the addresses of those who are connected to it (peers))
strictAddresses Function used to close the connection with the duplicate IP address
txIndex Function used to get transaction index by its hash
watchAddress Function used to operate with local wallets. Used for adding wallet address to Node to track all incoming and outgoing transactions
reIndexWallet Function used to operate with old wallets. Used to receive all transactions in the database by the specified wallet address
walletSupport Boolean function used by Node to support the wallet
listWallets Service function used to see the list of addresses that are added to the Node

Node install for development net

Set the environment variable NODE_ENV=Devel.

To display debug information, you must set a variable DEBUG=peer:*,node:*.

In components that support debugging at the beginning of the file there is a tag that is used for debugging.

Example (Linux):

NODE_ENV=Devel DEBUG=peer:*,node:* node index.js

Testing

Running tests

npm test

Running tests with debug output (*nix)

npm run-script testDebugNix

Running tests with debug output (Windows)

npm run-script testDebugWin

About

Network repository.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Other 0.1%