BlockChain4Students / blockchain_node

A definition of a Blockchain Data Structure
5 stars 4 forks source link

implement PoW consensus #19

Open RafaelAPB opened 4 years ago

RafaelAPB commented 4 years ago

Nodes should be able to decide which is the valid chain, in case of a fork. A simple way is to accept as the valid chain the one with the highest height.

We should try to decouple the consensus algorithm and mining process from the block definition as much as possible