02-p2p-persistance

command
v0.0.0-...-0a36b5b Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 31 Imported by: 0

README

Peer-2-Peer Blockchain Network, MUX Server and Persistance

Getting started

Here we have improved the server-mux to added persistence. Previously, for simplicity, we shut down all the nodes if you kill one of them. Here we leave all other nodes running even if one closes.

For the 1st node, go run defs.go mux.go p2p.go blockchain.go main.go -l 6000 -secio where you can replace 6000 by your prefered port number. Follow the instructions in the terminal to connect subsequent nodes.

TODO: If one node dies, it should be able to relay the info in its Peer Store to its connected nodes so they can connect to each other.

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