Skip to content

tallisbackatcoding/Blockchain-Visualisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain

This Blockchain have functionalities such as:

  • add a identifier to the blockchain node
  • remove nodes from the blockchain with an identifier
  • add a identifier block to nodes identified
  • remove the identified blocks from all nodes where these blocks are present
  • list all nodes by their identifiers
  • synchronize all of the nodes with each other

Data Structures such as Sequential Set, Binary Tree Set and String Array were implemented from scratch.

More info is provided below:

add node nid add a nid identifier to the blockchain node.
rm node nid... remove nodes from the blockchain with a nid identifier. If nid is '', then all nodes are impacted.
add block bid nid... add a bid identifier block to nodes identified by nid. If nid is '
', then all nodes are impacted.
rm block bid... remove the bid identified blocks from all nodes where these blocks are present.
ls list all nodes by their identifiers. The option -l attaches the blocks bid's associated with each node.
sync synchronize all of the nodes with each other. Upon issuing this command, all of the nodes are composed of the same blocks.
quit save and leave the blockchain. The blockchain prompt must display (see example below):

a [ character
a first letter that indicates the state of synchronization of the chain:
"s" if the blockchain is synchronized
"-" if the blockchain is not synchronized.
n number of nodes in the chain.
the "]> " string (with a space

About

Simple Blockchain visualisation written on C language.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors