Skip to content

Latest commit

 

History

History

networking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Part 2: Networking

Code your own blockchain in less than 200 lines of Go!

Tutorial

Read Part 1 first!

Read the Part 2 Tutorial to see a walkthrough of the code.

Deployment steps:

  • clone this repo
  • navigate to this directory and rename the example file mv example.env .env
  • go run main.go
  • open a new terminal window and nc localhost 9000
  • input a BPM and watch the blockchain in the first terminal window update
  • wait a few seconds to see the second terminal window also print the blockchain
  • open as many terminal windows as you like and nc localhost 9000 and watch blockchain networking in action!

Screenshot

screen

Ask us anything!

Join our Telegram chat and follow us on Twitter!