git clone https://github.com/SilentNotaryEcosystem/Cil-core.git
cd Cil-core
git checkout tags/latest
2. Setup Node.js (10.15.2) и npm
npm install
node index.js // node install
node savePrivateKey.js` //write private key to file (keystore analog)
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
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 |
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
npm test
npm run-script testDebugNix
npm run-script testDebugWin