Giter Club home page Giter Club logo

cil-core's Introduction

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 Running node as a seed (It will store and distribute the addresses of those who are connected to it (peers))
strictAddresses Source address from tcp connection should match address advertised via MSG_VERSION
trustAnnounce Use MSG_VERSION to determine node 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
suppressJoinTx Set to to prevent witness to create joinTx

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

cil-core's People

Contributors

bottlebo avatar trueshura avatar vooglooscr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.