lhartikk / naivechain

A blockchain implementation in 200 lines of code
Apache License 2.0
5.28k stars 1.15k forks source link

Refactor genesis block and isValidNewBlock #36

Closed tiendq closed 1 year ago

tiendq commented 6 years ago

Remove hard coded hash of genesis block and redundant calls of calculateHashForBlock.

luco5826 commented 6 years ago

Totally agree about fixing the repeated calls to calculateHashForBlock, would have done the same :)