A demo blockchain app based on Learn Blockchain By Building Your Own In JavaScript
- Create a network of nodes and use broadcast to synchronize the blockchain.
- Create transactions.
- Use proof of work to mine a new block.
- View blockchain and transaction.
- Use consensus with "Longest Chain Rule" to keep nodes up-to-date.
# Start servers (localhost with differnt ports)
npm run node_1
npm run node_2
npm run node_3
npm run node_4
npm run node_5
# Run the script to pre-fill data
./curlrequests.sh