p2p

package
v0.0.0-...-2eef10d Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

README

Test

Terminal one

go run main.go -l 10000 -secio

Terminal two

go run main.go -l 10001 -d /ip4/127.0.0.1/tcp/10000/ipfs/Qmf4X6ypWtb6g1wFFASGgbkUqci5sEA3PYVvgFP81imDR8 -secio

Terminal three

go run main.go -l 10002 -d /ip4/127.0.0.1/tcp/10001/ipfs/QmZrCB3ELTTa1ChjqcyopZ9aRw23Sadt1HFaZ7ZaX4Mrxc -secio

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blockchain []Block

Functions

func Run

func Run()

Types

type Block

type Block struct {
	Index     int
	Timestamp string
	BPM       int
	Hash      string
	PrevHash  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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