Skip to content

bjartur20/GoBlockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-419-CADP_OverlayNetworks

Overlay Networks


We implement a router node that has an REST API: http://localhost:7344.

Action URL
Register POST /v1/discovery
Ping (heartbeat) GET /v1/discovery
Unregister DELETE /v1/discovery

How it works

The daemon starts by intializing the network's configuration from the flags. Then, it initializes the naming service, starts the DHT node and the router.

DHT Node/Kademlia

The infohash is stored as a constant so it's the same for each node. This is decoded at the beginning of starting the node. After decoding the infohash, we create the DHT node with an empty configuaration file, so that our node finds the currently running nodes that we have on the public network. After creating the node, we start it and a goroutine to drain the nodes that our new node can now connect to.

Routes

Time-Stamping Server


Distributed consensus


Authors


  • Bjartur Þórhallsson
  • Laurynas Cetyrkinas
  • Ýmir Þórleifsson

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages