networking

command
v0.0.0-...-26e06bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 13 Imported by: 0

README

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!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL