https://github.com/mariosantosdev/blockchain-flow
https://github.com/mariosantosdev/blockchain-flow
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mariosantosdev/blockchain-flow
- Owner: mariosantosdev
- Created: 2022-05-23T00:50:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-23T00:50:11.000Z (about 4 years ago)
- Last Synced: 2025-02-22T13:39:59.045Z (over 1 year ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain Flow
This project was created just to study. It don't earn nothing!
## How to run
1. Clone the repository
2. Run `npm i` _or_ `yarn` to install dependencies
3. Run `npm run build` _or_ `yarn build` to build the application from Typescript to Javascript
4. Run `node .` to running the blockchain
### Arguments
The 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`