Great article! I've been wanting an good intro into block chain and this was perfect. However, when I ran the index.js file, blockchain.getAllBlocks() returned undefined. I got it to work by updating that function to const getAllBlocks = () => blocks.
const getAllBlocks = () => blocks
You are right, I updated the code in the article. Thanks for the catch!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.