Skip to content

dereeno/dag-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAG Exercise

This repository consists of 5 components.

Network

  • Spawns miners upon initialization
  • In charge of choosing the next block producer

Miner

  • Creates blocks
  • Adds blocks to his DAG
  • Propagate blocks to his peers

DAG

  • Create new block (with parent randomly selected from current tips)
  • Add blocks to graph

Block

  • Simple object with unique ID (only ABC are supported as IDs in this version for simplicity)

App

  • File to run the simulation (parameters are hard-coded in this file)

To run the program please use the following command

ruby app.rb

About

DAG Exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages