Chainshot Ethereum Developer Bootcamp Week 2 Project: Build Your Own Blockchain
Features Included
-Blocks in blockchain include
-transactions: pseudo txs including a coinbase and txs taken from a pre-stocked mempool until transactions reach MAX_TX. Txs are removed from the mempool upon block being successfully mined.
-previousHash: hash of previous block
-timestamp: unix value timestamp of when prospective block is composed
-nonce: value that is iterated to produce a block hash below the difficulty level
-Difficulty automatically adjusts based on block mining speed
-Miner can be started and stopped with scripts
To run:
-nodemon index
in project root folder
-node startMining
in scripts folder
-node stopMining
in scripts folder