cosme12 / SimpleCoin

Just a really simple, insecure and incomplete implementation of a blockchain for a cryptocurrency made in Python as educational material. In other words, a simple Bitcoin clone.
http://copitosystem.com
MIT License
1.78k stars 400 forks source link

fixing hash function #89

Open OsmelLavalier opened 2 years ago

OsmelLavalier commented 2 years ago

Fixing hash function

ramonscode commented 2 years ago

What's the problem with hash function? @OsmelLavalier

Aareon commented 1 year ago

This adds a __hash__ dunder method so that doing hash(Block) returns the Block proof.