This project was created just to study. It don't earn nothing!
-
Clone the repository
-
Run
npm i
oryarn
to install dependencies -
Run
npm run build
oryarn build
to build the application from Typescript to Javascript -
Run
node .
to running the blockchainThe code
node .
accepts some arguments to foward the blockchain.
The arguments should follow the sequence below:- Difficult: Accept a
number
to define the difficult to mining blocks (default is 4) - Block Counts: Accept a
number
to define the count of blocks generate in blockchain (default is 5) This value don't increment with the genesis block, then wait see block counts + genesis block. - Debbuger: Accept a
boolean
to define whether the console logs will be display (default is false) - Debbuger Mine Fail: Accept a
boolean
to define whether the console logs of mining fail will be display(default is false)
Example running with default arguments:
node . 4 5 false false
- Difficult: Accept a