Skip to content

farFromShallow101/Blockchain-with-PoW-and-Miners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Blockchain-with-PoW-and-Miners

Generates a blockchain with 10 blocks
Implements Proof of Work consensus algorithm
Uses multithreading to make mining easier
Uses serialization to check if the blockchain exists on the hard drive beforehand and checks for its validity
Each block hash has a different number of prefix zeroes. The prefix zeroes in the block hashes are matched using a random magic number in each block
The generation of this "magic number" can take quite some time for longer prefix lengths. Whenever the generation process takes too much time/too less time, then the blockchain regulates the required prefix length by increasing it or by decreasing it resp.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages