Blockchain use for cryptocurrency transactions. Uses Proof of work for consensus.
Blockchain use for cryptocurrency transactions. Uses Proof of work for consensus.
Having in mind that blockchain runs in a distributed network,
until I build a GUI for this project you’ll have ot use:
PostMan(app/web) versions
Open at least to terminals(GitBash) in project directory and PostMan(app or browser).
This should start a Peer-to-peer Networkk in P2P_PORT=5001.
The application should be running in the HTTP_PORT= 3001
Lets reserve the [5002-5999] ports for P2P connections and
the [3002-3999] ports for app connections.
There are 3 parameters when running this application.
After running the app for the first time. like instructed earlier,
to connect with another terminal you must concider 3 things:
And the already connected PEERS
Full Example:
HTTP_PORT=[3002-3999] P2P_PORT=[5002-5999] PEERS=ws://localhost:5001, ws://localhost:5002 npm run dev
This command is to at least have to “computers” running the blockchain.
… look at app.js